From - Wed Aug 18 10:14:13 1999 Date: Tue, 17 Aug 1999 11:37:00 +0900 From: monyo@home.monyo.com Reply-To: samba-jp@ns.ribbon.or.jp Subject: [samba-jp:02689] Re: Samba のパフォーマンス低下について Sender: TAKAHASHI Motonobu To: samba-jp@ns.ribbon.or.jp Message-Id: <19990817113700M.monyo@ganga.home.monyo.com> In-Reply-To: Your message of "Tue, 17 Aug 1999 10:18:12 +0900 (JST)" <199908170118.KAA01408@nadia.pes.com1.fc.nec.co.jp> References: <199908170118.KAA01408@nadia.pes.com1.fc.nec.co.jp> X-ML-Name: samba-jp X-Mail-Count: 02689 X-MLServer: fml [fml 2.2A#21]; post only (only members can post) X-ML-Info: If you have a question, send a mail with the body "# help" (without quotes) to the address samba-jp-ctl@ns.ribbon.or.jp; help= X-Mailer: Mew version 1.93 on Emacs 19.34 / Mule 2.3 (SUETSUMUHANA) X-Dispatcher: imput version 990623(IM117) Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Precedence: bulk Lines: 123 Content-Type: Text/Plain; charset=iso-2022-jp X-UIDL: 3b37aadc2e1fd4d2157884769aa81ae9 Status: U たかはしもとのぶです。 |この件に関し、comp.protocols.smb にパッチがながれて、それが効果があっ |たようです。ただ、手もとのnews server の spool にはもうなくなっていま |した。 |どなたか拾って頂けないでしょうか。 これでしょうか。 |Message-ID: <7p29nn$214@dfw-ixnews7.ix.netcom.com> |References: <7nnrc7$a19@dfw-ixnews14.ix.netcom.com> <37B12C0C.134ADA2B@berlin.de> <7p24hp$t8@dfw-ixnews15.ix.netcom.com> NNTP-Posting-Host: netcom9.netcom.com X-NETCOM-Date: Fri Aug 13 6:28:55 PM CDT 1999 NNTP-Posting-User: jeremy X-Newsreader: NN version 6.5.3 (NOV) Xref: news.allnet.ne.jp comp.protocols.smb:11034 jeremy@netcom.com (Jeremy Allison) writes: >Werner Nintzel writes: >If you understand the Samba code change the relevent recv/send >calls in lib/util_sock.c to using read/write and see if this >fixes it on Solaris 2.5.x. I will prepare a source code patch >for this and post it to allow people having trouble to >test, but it really does look like a Solaris 2.5.x bug. I've also >got someone at Sun looking into this. Answering my own posts now... :-) :-). Here's the test patch. Note that this compiles but has *NOT* been run on Solaris 2.5.x. However, if this fixes the problem then I'll know what to feed back to Sun. Poeple having this problem with Solaris 2.5.x please try this patch against 2.0.5a and re-compile - let me know if it fixes the problem. Please note this is *NOT* an official patch (as evidenced by the 'JRATEST' comments everywhere :-). Regards, Jeremy Allison, Samba Team. ------------------cut here-------------------------- Index: lib/util_sock.c =================================================================== RCS file: /data/cvs/samba/source/lib/util_sock.c,v retrieving revision 1.3.2.8.2.1 diff -u -r1.3.2.8.2.1 util_sock.c --- util_sock.c 1999/07/14 13:12:13 1.3.2.8.2.1 +++ util_sock.c 1999/08/13 22:32:18 @@ -221,10 +221,18 @@ if(fd == sslFd){ readret = SSL_read(ssl, buf + nread, maxcnt - nread); }else{ +#if 0 /* JRATEST */ readret = recv(fd, buf + nread, maxcnt - nread, MSG_WAITALL); +#else /* JRATEST */ + readret = read(fd, buf + nread, maxcnt - nread); +#endif /* JRATEST */ } #else /* WITH_SSL */ +#if 0 /* JRATEST */ readret = recv(fd, buf + nread, maxcnt - nread, MSG_WAITALL); +#else /* JRATEST */ + readret = read(fd, buf + nread, maxcnt - nread); +#endif /* JRATEST */ #endif /* WITH_SSL */ if (readret == 0) { @@ -278,10 +286,18 @@ if(fd == sslFd){ readret = SSL_read(ssl, buf + nread, maxcnt - nread); }else{ +#if 0 /* JRATEST */ readret = recv(fd, buf + nread, maxcnt - nread, MSG_WAITALL); +#else /* JRATEST */ + readret = read(fd, buf + nread, maxcnt - nread); +#endif /* JRATEST */ } #else /* WITH_SSL */ +#if 0 /* JRATEST */ readret = recv(fd, buf+nread, maxcnt-nread, MSG_WAITALL); +#else /* JRATEST */ + readret = read(fd, buf+nread, maxcnt-nread); +#endif /* JRATEST */ #endif /* WITH_SSL */ if (readret == 0) { @@ -490,10 +506,18 @@ if(fd == sslFd){ ret = SSL_read(ssl, buffer + total, N - total); }else{ +#if 0 /* JRATEST */ ret = recv(fd,buffer + total,N - total, MSG_WAITALL); +#else /* JRATEST */ + ret = read(fd,buffer + total,N - total); +#endif /* JRATEST */ } #else /* WITH_SSL */ +#if 0 /* JRATEST */ ret = recv(fd,buffer + total,N - total, MSG_WAITALL); +#else /* JRATEST */ + ret = read(fd,buffer + total,N - total); +#endif /* JRATEST */ #endif /* WITH_SSL */ if (ret == 0) --------------------end patch-------------------  ----- Motonobu TAKAHASHI (高橋 基信) mailto:monyo@home.monyo.com