From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f8c9b,16e084c3f30f1de9 X-Google-Attributes: gidf8c9b,public X-Google-Thread: fc89c,16e084c3f30f1de9 X-Google-Attributes: gidfc89c,public X-Google-Thread: fee84,16e084c3f30f1de9 X-Google-Attributes: gidfee84,public X-Google-ArrivalTime: 1993-12-14 18:41:18 PST Xref: gmd.de comp.unix.questions:25838 comp.unix.osf.osf1:1723 comp.unix.programmer:10917 Newsgroups: comp.unix.questions,comp.unix.osf.osf1,comp.unix.programmer Path: gmd.de!xlink.net!howland.reston.ans.net!news.intercon.com!psinntp!lehman.com!newshost!aajackso From: aajackso@shadow.newhost.lehman.com (Aaron Jackson) Subject: Re: more reading big files... In-Reply-To: sdr@shell.portal.com's message of Wed, 8 Dec 1993 03:04:12 GMT Message-ID: Sender: news@lehman.com (News) Nntp-Posting-Host: shadow Organization: Lehman Brothers References: Date: Mon, 13 Dec 1993 10:51:50 GMT >>>>> In article , 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..