Re: Linux disk caching

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi ,

 Probably you can use the O_DIRECT flag to bypass the
cache subsystem .

Cheers!

 --- Tulsi Ram Mayala
<tulsi_rammayala@persistent.co.in> wrote: > Thanks
Marc!
> This is a scary issue. I know that the files written
> by my application
> will not be read frequently (Only a very small
> percentage of them will be
> read). Can I programmatically OR using some system
> configuration, disable
> read cache on per file/process/systemwide basis?
> 
> -Tulsi Ram.
> 
> > On Wednesday 05 May 2004 03:04, Tulsi Ram Mayala
> wrote:
> >
> > Hi Tulsi,
> >
> >> I need some help to disable disk caching on Red
> Hat linux 7.2 (kernel
> >> 2.4).
> >> I run a server application on this system with 2
> Gigs of RAM. The server
> >> application does a lot of disk IO and with time,
> the linux system
> >> consumes
> >> all of available memory in cache and buffers thus
> leaving no space for
> >> the
> >> processes to grow. The system starts swapping and
> slows down my server
> >> application.
> >> I need some way to limit/disable the disk
> caching. My application does
> >> both disk read and write intensive operations.
> >> Any pointers will be appreciated.
> >> Thanx in advance.
> >
> > I don't know what Kernel RH 7.2 is using, but
> maybe it's all related to
> > this:
> >
> >
>
https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=89226
> >
> > ciao, Marc
> >
> 
> 
> --
> Kernelnewbies: Help each other learn about the Linux
> kernel.
> Archive:      
> http://mail.nl.linux.org/kernelnewbies/
> FAQ:           http://kernelnewbies.org/faq/
>  

________________________________________________________________________
Yahoo! India Matrimony: Find your partner online. http://yahoo.shaadi.com/india-matrimony/

--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux