Article View: comp.sys.amiga.tech
Article #12315Buffering to Disk?
From: Bamf
Date: Fri, 21 Apr 1989 05:24
Date: Fri, 21 Apr 1989 05:24
29 lines
1516 bytes
1516 bytes
Anyone that has extended experience with the amiga hardware know
the optimum size of a buffer to write with?
I am using the following:
write(fd,buf,i); /* where i is returned from read(fd,buf,4096); */
So that for the most part, I am writing with 4096 byte blocks,
but I get a few gronks every now and then. 4096 is however, one of the
one's that gronks the least. I figure there is probably an internal
buffer of some sort that if filled exactly might reduce gronking and
searching to a minimum. No?
Note: I am also assuming that write() is going to do this most
efficently, next to direct trackdisk twiddling. Is this a valid
assumption? (however, which, if anyone has some simple source on how
to trackdisk write, that they want to send... feel free.)
-- Bamf
--
NEVER date a music major. At least not one that's named her clarinet "Thor"
----You want it should sing too?------| noel@uokmax | ngorelic@uokmax
<Dis-Claimer, Dat-Claimer, to look at | uokmax!tavern!anyone
'em, you'd never know the diff...> | "Beam me up Scotty, we're outta beer"
Technical Details
Message-ID:
<3028@uokmax.UUCP>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!attcan!uunet!lll-winken!csd4.milw.wisc.edu!dogie.macc.wisc.edu!uwvax!rutgers!att!occrsh!uokmax!noelShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!attcan!uunet!lll-winken!csd4.milw.wisc.edu!dogie.macc.wisc.edu!uwvax!rutgers!att!occrsh!uokmax!noel From: noel@uokmax.UUCP (Bamf) Newsgroups: comp.sys.amiga.tech Subject: Buffering to Disk? Keywords: write, disk, drive, buffer, best? Message-ID: <3028@uokmax.UUCP> Date: 21 Apr 89 05:24:51 GMT Reply-To: noel@uokmax.UUCP (Bamf) Organization: Big Blue Box Lines: 29