PLEX86  x86- Virtual Machine (VM) Program
 Plex86  |  CVS  |  Mailing List  |  Download  |  Linux  |  Newsgroups

When does `write' return 180


Your Ad Here

Your Ad Here

Andrew Xue It is not silly.

It depends on a coupla things. If you have much more than 1GBytes of ram, the write could return as soon as the data get to a memory buffer. Possibly some of the cache would have to be paged out, but not necessarily.

When does `write' return 181
Andrew Xue Sorry. That was a DEC thing on their hard drives in the very late 1960s, at copy-on-write. Their...

It also depends if file fd is a raw file or not (if you are using raw file systems, you probably already know enough to answer your questions; so probably not a raw file). If it is, I believe you must wait until the write completes, but OTOH, you do not need to take the time to find system buffer space and copy from user space to system space, and you might be able to do it in a giant "spiral write" as DEC used to call it. Depends on hardware and the low level driver, I would expect.

And if you are really worried about the data getting onto the disk platter, consider that many drives have 8 to 16 MByte buffers inside, so even when the kernel thinks it has written to the hard drive, there may be up to 8 MBytes that might not get there at all if Murphy is on the job.

-- .~. Jean-David Beyer Registered Linux User 85642. V PGP-Key: 9A2FC99A Registered Machine 241939. ^^-^^ 08:55:00 up 13 days, 23:41, 3 users, load average: 4.14, 4.12, 4.14



Your Ad Here

List | Previous | Next

When does `write' return 181

Linux groups from Newsgroups

The #1 Usenet Provider on the Internet

devfs + kernel 2.6.12.12 + CD burning 179