use of ps3vram as buffer cache

Investigation into how Linux on the PS3 might lead to homebrew development.

Moderators: cheriff, emoon

Post Reply
Egon Alter
Posts: 1
Joined: Sun Jun 15, 2008 2:25 am

use of ps3vram as buffer cache

Post by Egon Alter »

Hi,

I currently use ps3vram for swapping and set swappiness to 100. This fills nearly the whole vram while doing desktop work and gives me more usable memory.
I think this sitation is not optimal, because a lot of memory is used by the buffer cache, while programs are being swapped out. As the subject suggests, I like to know if it is possible to use the vram as a file-system cache.
During my research, I found a lot of possibilties to do that. First there is fs-cache, which is currently only available for nfs filesystems and needs a rather large kernel patch. Also this would require to loop-mount the hard-disk via nfs ...
Second, a new simple filesystem which does some "copy on read" and write-through in combination with a stackable filesystem (unionfs/aufs) would be possible.
Third, "enhance" the kernel memory management to use mmaped vram for buffer pages.

Maybe there are some more (simpler ones)?

What is your opinion?

Thanks

Egon
anunakin
Posts: 6
Joined: Thu Jul 27, 2006 2:25 am

Post by anunakin »

We can find more here:
http://kerneltrap.org/node/1044
Anunakin
Post Reply