delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2004/12/30/14:00:09

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" <eliz AT gnu DOT org>
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>
X-Mailer: emacs 21.3.50 (via feedmail 8 I) and Blat ver 2.2.2
In-reply-to: <qip7t0pp2a6lbcndsjs9m1g4tv2ekfas5m@4ax.com> (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> <dl52t0tp5o1o6e5m6savh94u3vijmuq43r AT 4ax DOT com> <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> <lhk4t0lng0g7ca3fc48qt6i7jbv1is4ksh AT 4ax DOT com> <01c4ee2a$Blat.v2.2.2$0f6c2800 AT zahav DOT net DOT il> <qip7t0pp2a6lbcndsjs9m1g4tv2ekfas5m AT 4ax DOT com>
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

> From: Brian Inglis <Brian DOT Inglis AT SystematicSW DOT Invalid>
> 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?

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019