Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[QA] VFS consumes much disk space #8171

Closed
jnweiger opened this issue Oct 15, 2020 · 4 comments
Closed

[QA] VFS consumes much disk space #8171

jnweiger opened this issue Oct 15, 2020 · 4 comments

Comments

@jnweiger
Copy link
Contributor

jnweiger commented Oct 15, 2020

Seen with testpilot 2.7.0 daily (post RC1) on Ubuntu 18.04

I have synced down a tree of ca 600.000 files -- all in virtual placeholder mode.

θ66° 1z [testy:/home/sync/testpilotcloud4] $ find . -type f | wc -l
585374
θ66° 1z [testy:/home/sync/testpilotcloud4] $ du -sh .s* .
1,1G	.sync_dd97b94dce89.db
32K	.sync_dd97b94dce89.db-shm
9,7M	.sync_dd97b94dce89.db-wal
2,5G	.

The database consumes ca 2kb per file.
The filesystem seems to consume ca 4k per file, although they are only placeholders.

Not sure, if we can do anyhting about that.

@jnweiger
Copy link
Contributor Author

jnweiger commented Oct 15, 2020

image

During syncing, the .sync*.db-wal file grows. After all 265000 additional files are there, we have:

$ du -sh .s* .
1,1G	.sync_dd97b94dce89.db
17M	.sync_dd97b94dce89.db-shm
8,6G	.sync_dd97b94dce89.db-wal
3,6G	.
$ find . -type f | wc -l
850200

The GUI is now very sluggish. Click on the three dots menu takes 25 seconds of 100% CPU before the menu opens.

@TheOneRing
Copy link
Member

Obviously it has nothing to do with vfs but 265000 files.
Also the file should shrink after the sync is finished.

@TheOneRing
Copy link
Member

Duplicate of #7646

@TheOneRing TheOneRing marked this as a duplicate of #7646 Oct 15, 2020
@jnweiger
Copy link
Contributor Author

850000 files by now. Not sure if the non-VFS behaviour is different. :-)

https://www.sqlite.org/wal.html suggests that sqlite checkpointing should be performed periodically. either automtically or manually. PRAGMA schema.wal_checkpoint;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants