- 06 Feb, 2012 14 commits
-
-
Julius Plenz authored
-
Julius Plenz authored
-
Julius Plenz authored
-
Julius Plenz authored
-
Julius Plenz authored
-
Julius Plenz authored
* tar-quirks: Add an alias __openat_2() for openat() intercept creat()
-
Julius Plenz authored
Don't ask me for the reason why a straight-forward openat() call in GNU tar ends up calling __openat_2() via the glibc. I don't know. Anyway, that's the first time I had to ask something on StackOverflow, and I was promptly pointed in the right direction! <http://stackoverflow.com/questions/9161116/intercepting-the-openat-system-call-for-gnu-tar>
-
Julius Plenz authored
-
Julius Plenz authored
-
Julius Plenz authored
-
Julius Plenz authored
-
Julius Plenz authored
-
Julius Plenz authored
Still, there is some sort of racing condition I cannot reliably reproduce, but often enough observe. It looks like this: $ ./cachedel z && ./nocache cat z > /dev/null && ./cachestats -v z pages in cache: 2/16 (12.5%) [filesize=64.0K, pagesize=4K] cache map: 0: | | | | | | | | | | | | | | |x|x| Although of course the file should not be cached at all.
-
Julius Plenz authored
-
- 05 Feb, 2012 5 commits
-
-
Julius Plenz authored
-
Julius Plenz authored
-
Julius Plenz authored
-
Julius Plenz authored
-
Julius Plenz authored
-
- 04 Feb, 2012 7 commits
-
-
Julius Plenz authored
Also, fadv_dontneed will do the double syscall now.
-
Julius Plenz authored
There is a promising patch that adds POSIX_FADV_NOREUSE heuristics, see http://article.gmane.org/gmane.linux.kernel.mm/65564 > This will mean that there is no way currently to > remove a particular file from the cache on linux. Correct. There's not a way to do this for a single file (except running POSIX_FADV_DONTNEED twice...). If only one fadvise64 syscall is performed, the *first* previously unsused page will somehow not be forgotten.
-
Julius Plenz authored
-
Julius Plenz authored
-
Julius Plenz authored
-
Julius Plenz authored
The kernel tries once to lock the page to be freed. If this fails, it won't be freed. (This happens quite often, actually!)
-
Julius Plenz authored
The strange thing is that subsequent calls will eventually fill the cache, bit by bit. (This is in the dimension of n < 10 pages per call. But still I can't figure out where this happens.)
-
- 03 Feb, 2012 6 commits
-
-
Julius Plenz authored
-
Julius Plenz authored
-
Julius Plenz authored
-
Julius Plenz authored
-
Julius Plenz authored
-
Julius Plenz authored
-