X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f Date: Thu, 30 Dec 2004 20:56:45 +0200 From: "Eli Zaretskii" Sender: halo1 AT zahav DOT net DOT il To: djgpp AT delorie DOT com Message-ID: <01c4eea1$Blat.v2.2.2$74816940@zahav.net.il> Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=ISO-8859-1 X-Mailer: emacs 21.3.50 (via feedmail 8 I) and Blat ver 2.2.2 In-reply-to: (message from Brian Inglis on Thu, 30 Dec 2004 11:32:27 GMT) Subject: Re: DREADED fseek References: <6a7us0he1s9ml2djpp5tlm48lod92eei5c AT 4ax DOT com> <8edus09uvkr9or13giuvdflk4ogin5q2l1 AT 4ax DOT com> <01c4ebed$Blat.v2.2.2$c5f598c0 AT zahav DOT net DOT il> <200412281245 DOT iBSCjQRj001350 AT envy DOT delorie DOT com> <72v3t01u5oeu89j63pfeece2ip780hsb45 AT 4ax DOT com> <01c4ed60$Blat.v2.2.2$fab621a0 AT zahav DOT net DOT il> <01c4ee2a$Blat.v2.2.2$0f6c2800 AT zahav DOT net DOT il> Reply-To: djgpp AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk > From: Brian Inglis > Date: Thu, 30 Dec 2004 11:32:27 GMT > > >> Saw that: looks like it just flushes buffered writes, not all buffered > >> data read. > > > >On what OS? > > In flushdc.{c,txh} and RBIL. > None of them say that the list of all cached blocks is cleared, Yes, but did you actually try that, or did you only look at the sources? If you did try it and it didn't remove the read data, please tell on what OS was that. Note that the system call used by the function not only flushes the cache, but also resets the disk drive, which should do what you want (and at least on plain DOS, it actually did). > or that caching is disabled. The function doesn't disable caching, but if you invoke it after every test, you should see the behavior of uncached data, i.e. raw disk I/O performance. Isn't that what you wanted?