El 26/06/14 21:50, Carlos E. R. escribió:
Sometimes the admin may know things that the kernel does not :-)
Have you seen the kernel memory management code ? I am very skeptical about that statement.. kernel developers have gone into excruciating pain tuning the implementation to deal with the most obscure, corner cases you can imagine.. it almost always knows better.
For instance.
If I'm playing a DVD, or a movie from an iso file, I'm not interested in the system caching the entire file. In fact, I'm not interested in caching it at all. Or, if I'm coping a bunch of files, I do want the inodes and such cached, but not the contents, because as in the previous case, I only need the contents once. Read once, write once on another place, be done. Having the previous used file contents in cache when I read the next is a waste.
POSIX_FADV_DONTNEED exists for that reason, however the kernel may not honour it.. knows better..;) -- Cristian "I don't know the key to success, but the key to failure is trying to please everybody." -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org