Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: aajackso@shadow.newhost.lehman.com (Aaron Jackson)
Subject: Re: more reading big files...
Date: Mon, 13 Dec 1993 10:51:50 GMT	[thread overview]
Message-ID: <AAJACKSO.93Dec13055150@shadow.newhost.lehman.com> (raw)
In-Reply-To: sdr@shell.portal.com's message of Wed, 8 Dec 1993 03:04:12 GMT

>>>>> In article <CHp4J3.HEn@unix.portal.com>, sdr@shell.portal.com (Stephen Reagan) writes:
> Nntp-Posting-Host: jobe.shell.portal.com

> With regard to my post on reading/writing large files, I was wondering if
> using memory-mapped io (a la mmap, etc.) makes sense in this context.
> Does it even make any sense with such a large file?  If so, are there any
> savings in speed or performance?  Does this even work on Dec Alpha OSF 1.3?

I don't know if OSF 1.3 supports mmap(), but if you can use mmap()
you'll probably end up saving yourself a large headache.  I'm not an
OSF 1.3 wiz but most Unices have a buffer cache used for IO.  If you
use the mmap() subsystem you do not use the buffer cache implemented
by the OS and your transfer rate should be higher.

Of course this naturally depends on a number of issues such as the
fact that you are reading a large file sequentially and writing in the
same fashion.  Under SunOS /bin/cp is implemented using mmap().. well
the last SUUG that I have says that..



      reply	other threads:[~1993-12-13 10:51 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1993-12-08  3:04 more reading big files Stephen Reagan
1993-12-13 10:51 ` Aaron Jackson [this message]
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox