Re: Is Greenspun enough?



On Sat, 10 Dec 2005 20:15:48 -0600, rpw3@xxxxxxxx (Rob Warnock) wrote:

>Duane Rettig <duane@xxxxxxxxx> wrote:
>+---------------
>| Ulrich Hobelmann <u.hobelmann@xxxxxx> writes:
>| > George Neuner wrote:
>| >>>>> mmap()ed files are also cached, no?
>| >>>> No. Mapped files are handled by the virtual memory system and all
>| >>>> modern systems DMA pages directly to/from disk with no buffering.
>| >>> Seriously? I thought every common OS would buffer/cache most pages...
>| >> Seriously, you need to read up on MMUs, virtual memory and demand
>| >> paging systems.
>| >
>| > What I (think I) know about modern OSes is that they cache everything
>| > from disk, I suppose by associating file blocks with in-memory-blocks.
>| > Surely I could be wrong...
>+---------------
>
>Ulrich isn't wrong, George. The "global page cache" has pretty much
>completely replaced the "file block cache" in recent versions of the
>VM systems of most decent operating systems [e.g., Irix, *BSD, Linux].
>Pretty much *everything* is cached using the same mechanism [which
>does have its downsides sometimes, to be sure.].


I think this is a debate about terminology. You are arguing that the
page in RAM is a "cache" of the disk data and I am arguing that it is
not - at least not in general.

The traditional software notion of cache is that of a copy kept for
some reason ... the operative term being "copy". It is applicable to
mapped executables, but not to swappable data because the page in RAM
is not, in general, a copy of the disk data.


WRT "global page cache", AFAICT it is nothing more than a new and
somewhat misleading name for what used to be called the "page frame
table".


I think we've wasted enough bandwidth ... time to agree to disagree.

George
--
for email reply remove "/" from address
.



Relevant Pages

  • Re: Can I display the Computer Browser services cache?
    ... NSLookup is DNS based. ... There is no "cache". ... > "George Valkov" wrote in message ...
    (microsoft.public.windows.server.networking)
  • Re: Autocomplete cache
    ... To clear the entire cache: ... [MVP-Outlook] ... "George" wrote in message ... > string that a cache controls autocomplete rather than ...
    (microsoft.public.outlook.contacts)
  • Re: Optimization problem
    ... CPU core and is able to respond to the CPU at full speed (i.e. read or ... each of the four CPU cores has 32 KBytes of L1 cache for data (and ... When you go out of L2 cache as well, the CPU must rely on the plain RAM. ... harddisk) is really called _paging_. ...
    (comp.lang.java.programmer)
  • Re: RAM shows less
    ... Are you shure to have 4294967296 Byte of Ram? ... vendor: Dell Inc. ... capabilities: fpu fpu_exception wp vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx rdtscp x86-64 constant_tsc arch_perfmon pebs bts rep_good xtopology nonstop_tsc aperfmperf pni dtes64 monitor ... description: L1 cache ...
    (Fedora)
  • Re: Slow File Load Through ODBC Driver
    ... buffer cache from 772 Megs to 132Megs ... virtual) ram immediately to fox when fox generated a large select statement. ... XP professional (suspecting kernel memory handling) -- no effect; ...
    (microsoft.public.fox.programmer.exchange)