monero-project / monero

Monero: the secure, private, untraceable cryptocurrency
https://getmonero.org
Other
8.95k stars 3.1k forks source link

monerod: [windows] Mysterious "disk leak," while Monero daemon is running #8742

Open opportunistic opened 1 year ago

opportunistic commented 1 year ago

This is driving me absolutely crazy, whenever I have monerod.exe running (after fully syncing), Windows begins to report disk free space decreasing at a pretty alarming rate, around 15GB every hour. However, there is are not actually any new data being written to the disk...

WinDirStat reports the proper free space after fully scanning all files, and Windows only recognizes that this space is not actually allocated to any files after a full restart.

Something potentially worth noting is that this is being performed on an SSD with the operating system installed on it and also Veracrypt full disk encryption.

Please let me know if anyone has a solution or if more information is needed, this is driving me absolutely crazy.

selsta commented 1 year ago

Could you post your monerod config?

opportunistic commented 1 year ago

Could you post your monerod config?

I do not believe I have one, I'm using Monero GUI wallet and I have not changed anything besides --out-peers=512

selsta commented 1 year ago

I'd recommend against setting such a high number of out peers but that's unrelated to your issue.

We have never received a similar report before so I suspect it's related to Veracrypt. Can you copy the blockchain to an external unencrypted drive and see if you can reproduce the issue?

hyc commented 1 year ago

copy the blockchain to an external unencrypted drive

Move the entire bitmonero folder and tell monerod where to find it. I'm suspecting logfile activity, not database activity.

opportunistic commented 1 year ago

copy the blockchain to an external unencrypted drive

Move the entire bitmonero folder and tell monerod where to find it. I'm suspecting logfile activity, not database activity.

Watching the process with Process Monitor, there's not really any log file activity... mostly just ReadFile and WriteFile on the database.

opportunistic commented 1 year ago

Update!

After disabling this option on my blockchain folder (Windows seems to turn it on automatically sometimes), it seems like the "leak" has stopped!

image

I'm not sure why this interaction occurs, would be worth fixing or warning the user about, though.

selsta commented 1 year ago

@hyc do you know anything about how this Windows option interacts with LMDB?