-
Notifications
You must be signed in to change notification settings - Fork 165
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
Massive memory usage with FUSE mount #551
Comments
Read file chunks are kept in memory until the reading file handle is closed. If your reading patterns are sets of [open, read, don't close but move to next file] then you'd definitely run out of memory eventually. If you're not mutating these files, I'd suggest finding a way to cache the portions you're interested in locally and then closing those file handles, or closing handles on files after a read if you don't expect to read again for some time. |
Script I'm using (creepMiner referenced above) is closing file handles after reading. I've even checked it with lsof (using At the same time (according to Can I check it somehow what acdcli keeps in memory? |
To clarify, when you see acdcli using a lot of memory, you can close creepminer and the usage remains? I'd also be curious what happens if you creepmine locally for plotfiles and then rsync them to amazon to test the rest of your environment. Also, is it possible that creepminer does mutate the files? If it's twiddling some small value in a header of a huge file, acdcli may end up reading the whole thing to write it back again on a close. |
After closing creepminer, memory usage of acd_cli stays at the same level. And it doesn't mutate plotfiles, it just read them. I'm currently generating plotfiles locally (using other software, designed for plotting: https://github.com/Mirkic7/mdcct), and I'm sending them using After that they are read by creepminer using FUSE mount |
Can you have a go at PR #374 and see if the problem persists? I'd be especially interested if, after switching to that PR, you Forgive me about being pedantic on the writing part; we had some Plex issues a while back with view count metadata changes on big movie files. If you still see the problem, please post the acd_cli log here. |
would |
While Fuse mount arguments can be little funny: |
Hi,
I have a huge problem with RAM usage with acd_cli.
I have an ACD account with couple thousands of 2-3GB files that toogether consumes couple of terabytes of storage.
I'm connecting with this account using acd_cli's FUSE option using this command:
Than, one of my scripts is constantly accessing and reading these files (it isn't downloading whole files all the time, it's only accessing certain parts of them) in a loop.
The problem I am experiencing is exccessive acd_cli's memory usage. Memory usage is constantly growing, and in the end (when it consumes nearly whole RAM and swap on the system) it's crasing acd_cli, so i'm not able to access directory mounted by acd_cli.
When I'm trying to force unmount the drive, and mount it again, acd_cli is freeing some of the memory, so the whole script is able work again, but this solution is fine for me, because all other processes on the system are suffering from the high RAM usage.
Do you have any clues what could be causing these issues? How can I profile acd_cli's memory usage when using FUSE?
I'm running acd_cli on
The text was updated successfully, but these errors were encountered: