Article View: news.software.nntp
Article #40527Re: Diablo debugging problems...
From: Miquel van Smoorenburg
Date: Tue, 05 Oct 1999 00:00
Date: Tue, 05 Oct 1999 00:00
24 lines
1937 bytes
1937 bytes
In article <37fa44dc$0$7740@news.execpc.com>, Joe Greco <jgreco@ns.sol.net> wrote: >I'm actually tempted to go look at POSIX for more info. Solaris man pages >for write(2) suggest that write is guaranteed to write the bytes, assuming >neither O_NONBLOCK nor O_NDELAY are set on the fd. I've seen some other >mildly supporting stuff... it might be more interesting just to play with >the fd's mode to correct the behaviour. To disk - probably, as long as the write is just a few pages. If you want to write 512 MB using write() in one go chances are that it will not write it in one system call. If you write() to a pipe or a socket, the write might be partial if the kernel buffer has filled up because the other side hasn't read all the data yet, or you write more data than the kernel buffer size. Kernel buffer size of a pipe() is usually smaller than that of a socket (4K vs 32K or so) except on systems where a pipe() is actually a socketpair() (like Solaris, I think). Mike. -- First things first, but not necessarily in that order.
Technical Details
Message-ID:
<7tdq1o$d9a$1@defiant.cistron.net>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mailReferences:
<brad-0110991517500001@brad.techos.skynet.be> <brad-0510991348210001@brad.techos.skynet.be> <brad-0510991730300001@brad.techos.skynet.be> <37fa44dc$0$7740@news.execpc.com>Show Full Headers
Complete Article Headers
Message-ID: <7tdq1o$d9a$1@defiant.cistron.net> Subject: Re: Diablo debugging problems... Date: Tue, 05 Oct 1999 00:00:00 +0000 From: miquels@cistron.nl (Miquel van Smoorenburg) References: <brad-0110991517500001@brad.techos.skynet.be> <brad-0510991348210001@brad.techos.skynet.be> <brad-0510991730300001@brad.techos.skynet.be> <37fa44dc$0$7740@news.execpc.com> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail X-Deja-AN: 533232580 X-Complaints-To: abuse@cistron.nl X-Trace: enterprise.cistron.net 939158403 6190 195.64.65.22 (5 Oct 1999 21:20:03 GMT) Organization: Cistron Internet Services B.V. NNTP-Posting-Date: 5 Oct 1999 21:20:03 GMT Newsgroups: news.software.nntp