-
Notifications
You must be signed in to change notification settings - Fork 53
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
Where noCACHE ? #15
Comments
This is an issue related to file metadata. |
So, it is necessary to implement! :) |
I disagree. File metadata caching is really useful almost always and takes up very little memory, I would think. |
If it is possible to implement then command-line option will suit everybody. :) As for "very little memory" it depends... For example I have tree with over 12 million files in it. It takes over the hour to walk it and list of files takes well above 8 GiB so even utilities like |
Ok, I see your point. Actually I have no idea how to prevent metadata caching (or discard the data after use), but I’ll have a look at it some time this week. Reopening the issue for now. |
Hi all, That said, a systemwide solution (so not as specific as nocache) would be to run:
you can check the memory usage of the inode cache by running
and looking for you can also tell your kernel to prefer freeing inode cache by setting a I haven't found yet how to selectively with the existing kernel code base, and frankly I don't know if it's possible, but it would be straightforward to implement a kernel patch to do this: You could also see how Hope it helps, cheers, |
|
On Tue, 18 Jun 2013 21:05:19 Reda NOUSHI wrote:
I'm flattered that you think I have skills to do that. ;) Regards, |
From a quick read over the Kernel source I think it’s not easily possible. The best hint is still
is what we’d like to do, but for specific files, let’s have a look what this actually does: It just shrinks the slab, regardless of what’s present. Here is the full implementation:
So my guess is if we were to implement this it would take a few dozen lines of Kernel code; but probably a Kernel module, which would mean the user requires root privileges. @onlyjob: How about adjusting
|
Recursively find in linux kernel tree:
At first time - 12 seconds, at next time - 2 sec. :)
The text was updated successfully, but these errors were encountered: