Comments (8)
@galki this is a known issue and indeed adding cardano-node.exe
to an exclusion list and\or the state directory helps. The issue is most apparent when syncing Daedalus as the large numbers of disk I/O get scanned by Defender which slows things down as we are syncing the original chain and at the same time consolidating the blocks. Once consolidation happens the overhead of Windows Defender is much less.
from daedalus.
We're not sure but we suspect that this is a side-effect of our block storage mechanism (lots and lots of small files). I'm currently writing a proposal on an alternative way to store blocks, so there's a good chance that this issue will be fixed in one of the next releases, if your problem is indeed caused by that.
Can you look at the Windows Defender process in Process Monitor and check what it does when it eats 30% of CPU? (If it accesses blocks, you'll see lots of accesses to files with hashes as names)
from daedalus.
This was also my initial feeling re lots of small files.
I will get you the process monitor results next week.
from daedalus.
I had some time today and obtained some results using Process Monitor
There are two (2) traces :1) with Defender ON, and 2) with Defender OFF. For each test, I restored using the same 12 word recovery phrase. Refer to the screenshot to see where I changed this setting.
The wallet restore took 35 minutes with Defender ON and only 12 minutes with Defender OFF. That's a 65% reduction in time to complete the wallet restore task with Defender OFF. The difference in block time/height between the two trials is less than an hour apart or less than 1%. I restarted Daedalus between trials. I did not restart the computer however.
For each test, I ran process monitor with /NoConnect and the moment I started the restore function in Daedalus I did Ctrl+E in process monitor to begin recording. When the wallet restore task finished in Daedalus, I let process monitor run for 20 additional seconds before I stopped recording.
The Windows Defender / antimalware service executable corresponds to MsMpEng.exe
- Defender ON trace results :
Process Name Count
"Value","Count"
"cardano-node.exe","171964" <-------
"csrss.exe","12"
"Daedalus.exe","9927"
"Explorer.EXE","52"
"lsass.exe","100"
"MsMpEng.exe","40010" <-------
"NVDisplay.Container.exe","2105"
"OfficeClickToRun.exe","8"
"OneDrive.exe","8"
"RuntimeBroker.exe","2"
"SearchFilterHost.exe","3"
"SearchIndexer.exe","95"
"SearchProtocolHost.exe","3"
"services.exe","1"
"svchost.exe","4017"
"wmiprvse.exe","1559"
- Defender OFF trace results :
Process Name Count
"Value","Count"
"cardano-node.exe","8930032" <------- (not sure why the count is much higher during this trial)
"Daedalus.exe","136699" (not sure why the count is much higher during this trial)
"svchost.exe","47812" (not sure why the count is much higher during this trial)
"NVDisplay.Container.exe","11043"
"wmiprvse.exe","3157"
"taskhostw.exe","1872"
"SearchIndexer.exe","1274"
"sihclient.exe","1117"
"smartscreen.exe","969"
"services.exe","714"
"conhost.exe","572"
"SecurityHealthService.exe","545"
"Explorer.EXE","420"
"MsMpEng.exe","306" <------- (much less count!!!)
"lsass.exe","286"
"OfficeClickToRun.exe","124"
"dwm.exe","105"
"OneDrive.exe","104"
"winlogon.exe","93"
"csrss.exe","62"
"sihost.exe","62"
"DllHost.exe","61"
"AUDIODG.EXE","56"
"RuntimeBroker.exe","21"
"ApplicationFrameHost.exe","8"
"cardano-launcher.exe","2"
"smss.exe","1"
I find it strange that there is a much higher count during the Defender OFF trial for cardano-node.exe, Daedalus.exe, and svchost.exe
If you want, I can reboot the machine and do another Defender OFF trial.
from daedalus.
FYI, my system details. As I mentioned already, this is a fresh instance of Windows. I have only installed Daedalus, Chrome, Office 2013, and Visual Studio Community 2017 (desktop, mobile, and azure development components). All updates were done and made sure that computer was settled.
Also, here are the Defender Settings. Trial 1 was all three (3) highlighted switches ON and Trial 2 was all three (3) highlighted switches OFF.
from daedalus.
These issues are resolved with the introduction of the blockchain storage consolidation which was released in Daedalus v0.12.0. Find out more about this process on the Support portal: https://iohk.zendesk.com/hc/en-us/articles/360016060314-Blockchain-storage-consolidation
from daedalus.
I'm on 0.15.1
and getting the same symptoms.
Solved by adding cardano-node.exe
process to list of Defender's exclusions.
from daedalus.
Thanks for reporting this @galki!
@DmitriiGaico can we please have this checked?
from daedalus.
Related Issues (20)
- % Synced label shows different levels or precision. HOT 1
- Allow saving chain data to other directories HOT 2
- Export CSV Not Saving File
- Daedalus unacceptable bug HOT 1
- Why sync is so long? HOT 1
- Reset timer on verifying recover phrase when wallet is freshly imported
- Allow paste of full recovery phrase when verifying recovery phrase
- "Fetching conversion rates" never resolves
- what is the solution for closed issue #2985, I have the exact same error occurred while importing HOT 2
- CANNOT INSTALL DAEDALUS FEDORA XFCE HOT 5
- New Trezor Safe 3 HOT 1
- [FR]: Allow for easier specification of RTS options HOT 2
- Irresponsive CSV button for certain wallets
- Flickering when running on XWayland HOT 10
- Is there an old version of Daedalus that can connect and work with the Nano X ADA app v2.0.3 (dated from around Aug 2020)? HOT 1
- Its urgent - We need a Daedalus Version with low ram usage HOT 8
- [BUG] Daedalus 5.3.0 gets stuck with the infamous ledger bug of cardano-node v1.35.4 HOT 3
- 5.4.0: Node crashes on startup HOT 2
- Looking to interview Daedalus users to learn about their issues, pain points, and needs. If you are a Daedalus wallet user or have any insights to share, I would love to speak with you.
- daedalus mainnet try to connect to "metadata.cardano-testnet.iohkdev.io" but fail
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from daedalus.