On Thu, 28 Apr 2005 03:41:46 +0200 Tzahi Fadida <[EMAIL PROTECTED]> wrote:
> My next move was to try a big allocation like cacheman in windows > to free memory right now. I don't think that would work since the kernel allocates big memory chunks sort of on loan. You can allocate more memory then you actually have. The problem starts when you actually try to access that memory and then the program will be killed if the memory isn't really available. You may need to allocate AND use the memory. > Maybe create a huge file? > I don't know if it will work though, since the kernel has > to decide to somehow get rid of that particular caching. > Its not like i can target this. > Sync was the first thing i tried, and it had no effect. > possibly if you start reading a lot of other files from disk it will flush the new caches in favor of new ones. You can run 'find /' or run updatedb which updates the databases for the locate program. These too options should force the cache to flush. > Maybe there is proc setting or something like that > limits or disables this caching? I'm not aware of one and I don't think one exists since there are several non-strait-forward implementation for suspend in order to force flushing disk caches so that they won't be written to the hibernation image. > Maybe i can rename/move/etc... the files of the database and > somehow the kernel will get the hint this cache is not > valid anymore. > Why do you want to force this flushing ? If you try to use these files the kernel makes sure that you are using the latest version and if you are using a removable disk, unmounting it will force a sync. The only good it will do you is to change benchmark results. > Regards, > tzahi. > > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Amos Shapira > Sent: Thursday, April 28, 2005 2:02 AM > To: [email protected] > Subject: Re: cleaning memory. > > > > > > ================================================================= > To unsubscribe, send mail to [EMAIL PROTECTED] with > the word "unsubscribe" in the message body, e.g., run the command > echo unsubscribe | mail [EMAIL PROTECTED] > > > +++++++++++++++++++++++++++++++++++++++++++ > This Mail Was Scanned By Mail-seCure System > at the Tel-Aviv University CC. > +++++++++++++++++++++++++++++++++++++++++++ This Mail Was Scanned By Mail-seCure System at the Tel-Aviv University CC. ================================================================= To unsubscribe, send mail to [EMAIL PROTECTED] with the word "unsubscribe" in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]
