Path: 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 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 | "Beam me up Scotty, we're outta beer"