#jython IRC Log (v0.9)

Index

IRC Log for 2012-11-02

Timestamps are in GMT/BST.

[0:00] <agronholm> yes
[0:00] * catmtking (~catmtking@dhcp-138-23-59-162.dyn.ucr.edu) Quit (Quit: catmtking)
[0:00] <gColossus> agronholm: so, the question is: how many threads per client? given that I have [model name : Intel(R) Core(TM) i5-3317U CPU @ 1.70GHz] and 8GB of RAM running [Linux colossus-arch 3.3.8-1-ARCH #1 SMP PREEMPT Tue Jun 5 15:20:32 CEST 2012 x86_64 GNU/Linux]
[0:01] <agronholm> if no real computation on the client side is necessary, you might want to try an async approach then
[0:01] <agronholm> single thread
[0:01] <gColossus> agronholm: please elaborate more on the async part
[0:01] <agronholm> by the use of select, epoll, kqueue and the sort
[0:01] <gColossus> agronholm: computation is performed before threads are spawned, so no.
[0:02] <agronholm> so you will wait for data on all sockets at once
[0:02] <agronholm> and it will return once there is data to be read
[0:03] <gColossus> this? http://www.jython.org/docs/library/select.html
[0:03] * inspired (inspired@146.90.52.83) Quit (Ping timeout: 240 seconds)
[0:03] <agronholm> the clients don't have to use jython, though?
[0:03] <agronholm> yes
[0:04] <gColossus> agronholm: the clients use jython ... server uses java
[0:05] <agronholm> do you need java code on the client side then?
[0:05] <gColossus> agronholm: well, client uses some java lib that was written for communication with the server software
[0:05] <gColossus> agronholm: so I will need them
[0:06] <agronholm> I see
[0:06] <agronholm> things could get tricky then
[0:06] <gColossus> agronholm: so how about multiple clients?
[0:06] <gColossus> what would be the threading bottle neck of 1 client? 100?
[0:07] <agronholm> you're only measuring the performance of the server, aren't you?
[0:07] <gColossus> agronholm: yes
[0:08] <agronholm> so why are you concerned about the client's performance then
[0:09] <gColossus> agronholm: well, if threads have to wait so long to be activated again, then it doesn't correctly represent simultaneous load?
[0:10] <agronholm> I don't think 100 threads would be a problem
[0:10] <agronholm> but if you're concerned, use multiple client machines then
[0:10] <gColossus> agronholm: and you just made me realized that I also have to double check that loads are distributed evenly (somewhat) on my 4 cores
[0:10] <gColossus> agronholm: I am looking at 1000 threads as the max client count
[0:11] <agronholm> why would it not distribute them evenly?
[0:11] <agronholm> the OS does that automatically...
[0:11] <agronholm> besides, your app is I/O bound so there is very little useful load
[0:12] <agronholm> like you said, most of the cpu usage will come from thread context switching then
[0:14] <gColossus> agronholm: yes, loads are distributed evenly
[0:14] <gColossus> agronholm: well, i want them to use all the cores so that it would be using all the cores
[0:15] <agronholm> but isn't that a given?
[0:15] <gColossus> agronholm: instead of having just 1 core handling all the threads which defeats the purpose
[0:15] <agronholm> how were you planning to affect this handling?
[0:15] <gColossus> agronholm: just wanted to doublecheck, because i have read about someone bumping into that issue
[0:23] * gColossus (~tahoang@unaffiliated/gcolossus) Quit (Ping timeout: 244 seconds)
[0:32] * msavy (~msavy@redhat/jboss/msavy) Quit (Remote host closed the connection)
[1:26] * msavy (~msavy@redhat/jboss/msavy) has joined #jython
[2:44] * lheuer1 (~Adium@blfd-4d08e0bd.pool.mediaWays.net) has joined #jython
[2:47] * lheuer (~Adium@unaffiliated/lheuer) Quit (Ping timeout: 260 seconds)
[3:05] * msavy (~msavy@redhat/jboss/msavy) Quit (Remote host closed the connection)
[6:17] * tnelson (~trent@host10.ged.msu.edu) has joined #jython
[6:34] * jlwestsr (~jlwestsr@2602:304:ab2a:67e9:fdfd:e6ed:7706:1fd4) Quit (Ping timeout: 246 seconds)
[6:50] * lheuer1 is now known as lheuer
[7:39] * varialus (~varialus@199.192.96.200) has joined #jython
[7:59] * inspired (~inspired@146.90.52.83) has joined #jython
[9:52] * msavy (~msavy@redhat/jboss/msavy) has joined #jython
[10:10] * wmeissner (~wmeissner@119.12.203.254) has joined #jython
[11:47] * jlwestsr (~jlwestsr@2602:304:ab2a:67e9:fdfd:e6ed:7706:1fd4) has joined #jython
[12:06] * wmeissner (~wmeissner@119.12.203.254) Quit (Read error: Connection reset by peer)
[12:06] * wmeissner (~wmeissner@119.12.203.254) has joined #jython
[14:34] * wmeissner (~wmeissner@119.12.203.254) Quit (Read error: Connection reset by peer)
[16:25] * j105rob (~rob@74.9.152.66) has joined #jython
[16:39] * ciziar (~textual@c-5eeaaa1d-74736162.cust.telenor.se) Quit (Read error: Connection reset by peer)
[17:53] * j105rob (~rob@74.9.152.66) Quit (Quit: Konversation terminated!)
[18:21] * msavy (~msavy@redhat/jboss/msavy) Quit (Remote host closed the connection)
[18:37] * TkTech (~TkTech@irc.tkte.ch) has joined #jython
[19:31] * diametric (~diametric@38.127.139.151) has joined #jython
[19:58] <pjenvey> anyone wanna review the bz2 pull request? it looks pretty straightforward but I'm not sure about the use of java.util.Formatter
[20:00] <pjenvey> for (byte b : buf) {
[20:00] <pjenvey> if (b < 32 || b > 126) {
[20:00] <pjenvey> that's bogus
[20:00] <pjenvey> anyone wanna delve into that
[20:01] <pjenvey> er, > 126?, i guess that's valid. not sure what it's doing though
[20:03] * ciziar (~textual@c-5eeaaa1d-74736162.cust.telenor.se) has joined #jython
[20:26] <agronholm> does it pass the tests?
[20:50] * jlwestsr (~jlwestsr@2602:304:ab2a:67e9:fdfd:e6ed:7706:1fd4) Quit (Ping timeout: 246 seconds)
[21:04] * jlwestsr (~jlwestsr@2602:304:ab2a:67e9:fdfd:e6ed:7706:1fd4) has joined #jython
[21:31] * jlwestsr (~jlwestsr@2602:304:ab2a:67e9:fdfd:e6ed:7706:1fd4) Quit (Ping timeout: 246 seconds)
[21:44] * jlwestsr (~jlwestsr@2602:306:2472:6e79:fdfd:e6ed:7706:1fd4) has joined #jython
[22:30] * ciziar (~textual@c-5eeaaa1d-74736162.cust.telenor.se) Quit (Ping timeout: 244 seconds)
[22:42] * ciziar (~textual@c-5eeaaa1d-74736162.cust.telenor.se) has joined #jython
[23:12] <pjenvey> pjenvey - he said it passed test_bz2, yea
[23:14] * diametric (~diametric@38.127.139.151) Quit (Remote host closed the connection)
[23:50] * msavy (~msavy@redhat/jboss/msavy) has joined #jython
[23:50] * msavy (~msavy@redhat/jboss/msavy) Quit (Remote host closed the connection)

Index

These logs were automatically created by JythonLogBot_ on irc.freenode.net using a slightly modified version of the Java IRC LogBot (github).