From: Eric Wong <normalperson@yhbt.net>
To: kgio@librelist.org
Subject: Re: There's no TCP_NOPUSH in Solaris 10
Date: Wed, 21 Mar 2012 20:15:22 +0000 [thread overview]
Message-ID: <20120321201522.GA22844@dcvr.yhbt.net> (raw)
In-Reply-To: CAAtReCn5OfjOXnNchxE8_Mr=gESRQm3kNSAkjB7ZhU9P2hsB+Q@mail.gmail.com
Edho Arief <edho@myconan.net> wrote:
> 2012/3/20 Eric Wong <normalperson@yhbt.net>:
> > Edho Arief <edho@myconan.net> wrote:
> >> 2012/3/19 Eric Wong <normalperson@yhbt.net>:
> >> >
> >> > OK, can you try with latest git? Also which Ruby version are you using?
> >> > Did any of this work in previous version of kgio?
> >>
> >> I've never tested on other version since it was just my random weekend
> >> experiment.
> >>
> >> ruby 1.9.3p125 (2012-02-16 revision 34643) [i386-solaris2.10]
> >
> > If you have time, maybe truss/dtruss can tell you what's wrong? Do ruby
> > tests themselves pass? I'm not sure if anybody on the Ruby core team
> > tests/maintains your platform on a regular basis.
>
> Failed one test for ruby: http://pastie.org/3634027
Use "make check", that runs "make test-all" as well
> Here is the truss for kgio make test (relevant part, I hope):
>
> ruby -I lib:tmp/ext/ruby-1.9.3/ext/kgio
> test/test_unix_server_read_client_write.rb
> write(1, " r u b y - I l i b :".., 84) = 84
> lwp_sigmask(SIG_SETMASK, 0x60004007, 0x00000000) = 0xFFBFFEFF [0x0000FFFF]
> lwp_sigmask(SIG_SETMASK, 0xFFBFFEFF, 0x0000FFFF) = 0x60004007 [0x00000000]
> vfork() = 13190
> lwp_sigmask(SIG_SETMASK, 0x60004007, 0x00000000) = 0xFFBFFEFF [0x0000FFFF]
> schedctl() = 0xFEF4F000
> lwp_sigmask(SIG_SETMASK, 0x00000000, 0x00000000) = 0xFFBFFEFF [0x0000FFFF]
> Run options:
>
> # Running tests:
>
> ........................waitid(P_ALL, 0, 0x080460E0, WEXITED|WTRAPPED)
> (sleeping...)
You probably need to follow the fork() and trace children ("strace -f"
for Linux, maybe "truss -f"? My memory escapes me).
Just wondering, does this patch help?
--- a/test/lib_read_write.rb
+++ b/test/lib_read_write.rb
@@ -281,7 +281,7 @@ module LibReadWriteTest
elapsed = 0
foo = nil
t0 = Time.now
- thr = Thread.new { sleep 1; @rd.readpartial(nr) }
+ thr = Thread.new { sleep 1; @rd.read(nr) }
foo = @wr.kgio_write("HELLO")
elapsed = Time.now - t0
next prev parent reply other threads:[~2012-03-21 20:15 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-03-18 12:45 There's no TCP_NOPUSH in Solaris 10 Edho Arief
2012-03-19 9:29 ` Eric Wong
2012-03-19 9:31 ` Eric Wong
2012-03-19 9:35 ` Edho Arief
2012-03-19 9:52 ` Eric Wong
2012-03-19 10:10 ` Edho Arief
2012-03-19 20:09 ` Eric Wong
2012-03-20 10:53 ` Edho Arief
2012-03-21 20:15 ` Eric Wong [this message]
2012-03-22 1:48 ` Edho Arief
2012-03-22 8:38 ` Eric Wong
2012-03-22 15:00 ` Edho Arief
2012-03-23 21:15 ` Eric Wong
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://yhbt.net/kgio/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20120321201522.GA22844@dcvr.yhbt.net \
--to=normalperson@yhbt.net \
--cc=kgio@librelist.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://yhbt.net/kgio.git/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).