[Ilugc] Performing badly Redhat Linux OS cache - how to increas e
- From: mssnlayam@xxxxxxxx (Suriya Narayanan M S)
- Date: Fri Nov 19 16:53:33 2004
On Fri, Nov 19, 2004 at 02:09:25AM -0800, Murugan S wrote:
OS cache aka buffer cache tuning looks like a
dead end.
There should be some other way of improving the file
access speed, somewhere i read about "ramfs-based
drive", do you have any idea.
I just pointed out that the kernel implements a buffer cache. How do say
how bad/good performance is? What benchmarks are you using?
You can use /dev/ram0 or some other device to store data in memory. The (I
think) driver offers 8 MB of RAM space to store data. You can increase
this, if you want to. This is most suitable for Read-only data, since you
will be losing information if the system crashes, if there is a power
failure, etc.
Anyways, this is how you can use it.
% mkfs.ext2 /dev/ram0
% mount /dev/ram0 /ramdisk
## write data to /ramdisk
% umount /dev/ram0
% dd if=/dev/ram0 of=/disk.image
The next time you want to use the same data
% dd if=/disk.image of=/dev/ram0
% mount /dev/ram0 /ramdisk
I don't know if this is what you are looking for. You are limited by the
size of physical memory available.
Suriya
Other related posts:
- » [Ilugc] Performing badly Redhat Linux OS cache - how to increas e - Suriya Narayanan M S