login
Header Space

 
 

Thread benchmarks, round 2

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: <tech-kern@...>
Cc: Kris Kennaway <kris@...>
Date: Thursday, October 4, 2007 - 7:04 pm

So, I learned a few things since I put up the previous set of benchmarks:

- The erratic behaviour from Linux is due to the glibc memory allocator.
  Using Google's tcmalloc, the problem disappears.

- I missed a few things when porting jemalloc from FreeBSD. One of them
  was fairly major. Due to my mistake jemalloc on NetBSD was, basically,
  single threaded. That said it did show a noticable improvement over
  phkmalloc.

- There was a nasty performance bug in NetBSD's pthread mutexes, which
  is now fixed. libpthread has also had a couple more tweaks for performance
  that have had a positive impact.

- The memory allocator used has a significant effect on sysbench itself:
  it needs to be multithreaded.

- Mindaugas has made more improvements to his scheduler and these are
  showing a really positive effect.

So after making some changes to NetBSD, and changes to how I'm benchmarking
the systems, I have rerun them. In contrast to the previous runs, this one
is done locally:

	http://www.netbsd.org/~ad/sysbench2/4cpu.png 

Kris Kennaway has kindly offered to try NetBSD on an 8-way system. I expect
that NetBSD will hit a fairly clear ceiling due to poll, fcntl and socket
I/O causing contention on kernel_lock. It will be interesting to see.

Thanks,
Andrew
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Thread benchmarks, round 2, Andrew Doran, (Thu Oct 4, 7:04 pm)
Re: Thread benchmarks, round 2, Kris Kennaway, (Fri Oct 5, 5:18 am)
Re: Thread benchmarks, round 2, Kris Kennaway, (Fri Oct 5, 3:08 pm)
Re: Thread benchmarks, round 2, Andrew Doran, (Fri Oct 5, 3:39 pm)
Re: Thread benchmarks, round 2, Mindaugas R., (Sat Oct 6, 12:51 pm)
Re: Thread benchmarks, round 2, Kris Kennaway, (Sat Oct 6, 1:35 pm)
Re: Thread benchmarks, round 2, Kris Kennaway, (Fri Oct 5, 5:38 pm)
Re: Thread benchmarks, round 2, Kris Kennaway, (Sat Oct 6, 12:20 pm)
Re: Thread benchmarks, round 2, Thor Lancelot Simon, (Fri Oct 5, 1:24 pm)
Re: Thread benchmarks, round 2, Kris Kennaway, (Fri Oct 5, 2:18 pm)
Re: Thread benchmarks, round 2, matthew sporleder, (Fri Oct 5, 9:18 am)
Re: Thread benchmarks, round 2, Kris Kennaway, (Fri Oct 5, 2:28 pm)
Re: Thread benchmarks, round 2, Adam Hamsik, (Fri Oct 5, 10:35 am)
Re: Thread benchmarks, round 2, matthew sporleder, (Fri Oct 5, 11:03 am)
speck-geostationary