Re: [9fans] userspace semlocks

2013-09-23 Thread erik quanstrom
here's the raw data from a seperate run, and slightly different code, and a different machine. this is a test with thread(2) channels with T tx procs × R rx procs: ; aux/cpuid -i Intel(R) Xeon(R) CPU E31230 @ 3.20GHz ; wc -l /dev/sysstat 8 /dev/sysstat ; for(i in 1 2 4 8 16)time 6

Re: [9fans] userspace semlocks

2013-09-23 Thread erik quanstrom
> On 22 September 2013 03:55, erik quanstrom wrote: > > > > > new 1.55e10 O=10M=8 > > old 2.74e10 > > > > new 3.64e10 O=0 M=8 > > old 5.14e10 > > > > am i doing something fundamental wrong, or are the new locks substantially

Re: [9fans] userspace semlocks

2013-09-23 Thread Charles Forsyth
On 22 September 2013 03:55, erik quanstrom wrote: > > new 1.55e10 O=10M=8 > old 2.74e10 > > new 3.64e10 O=0 M=8 > old 5.14e10 > > am i doing something fundamental wrong, or are the new locks substantially > slower than the ol

Re: [9fans] userspace semlocks

2013-09-23 Thread erik quanstrom
> you are missing the reason. read the paper. the paper in question one assumes is "Semaphores in Plan 9", Sape Mullender and Russ Cox, IWP9, 2008. the idea in the paper is the scheduler might hurt, but i don't think there's any real development of that idea. so it's also possible that the sched

Re: [9fans] userspace semlocks

2013-09-21 Thread Bruce Ellis
you are missing the reason. read the paper. brucee On 22 September 2013 12:55, erik quanstrom wrote: > when i measure chan send performance with the attached program with > the semaphore locks that have been made the default for sources and > with the old locks, the old locks surprisingly outp

[9fans] userspace semlocks

2013-09-21 Thread erik quanstrom
when i measure chan send performance with the attached program with the semaphore locks that have been made the default for sources and with the old locks, the old locks surprisingly outperform the new ones by a large margin. the test is let O be the number of buffers in the channel, and M be the