Re: Before & After Under The Giant Lock



Roman Divacky wrote:
On Sun, Nov 25, 2007 at 02:41:35PM -0600, Stephen Montgomery-Smith wrote:

On Sun, 25 Nov 2007, Robert Watson wrote:

........................
In FreeBSD 8, I expect we'll see a continued focus on both locking
granularity and improving opportunities for kernel parallelism by better
distributing workloads over CPU pools. This is important because the
number of cores/chip is continuing to increase dramatically, so MP
performance is going to be important to keep working on. That said, the
results to date have been extremely promising, and I anticipate that we
will continue to find ways to better exploit multiprocessor hardware,
especially in the network stack.

I just want to add my 2 cents, that my recent experience with FreeBSD MP
has been extremely positive. I tend to use highly CPU bound MP programs,
typically lots and lots of floating point operations. It used to be that
Linux beat FreeBSD hands down - now FreeBSD seems to have a slight edge!
Basically my program runs about twice as fast when I run two threads as
opposed to one - I cannot see doing any better than that!

pure computation does not need kernel operations most of the time.. ie.
multi-threading kernel wont help much ;)

It has an indirect benefit by (presumably) not being in contention
with the userland process, and not needing slap Giant on the whole
system every few milliseconds.

Doug

--

This .signature sanitized for your protection

_______________________________________________
freebsd-hackers@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@xxxxxxxxxxx"



Relevant Pages

  • FreeBSD Status report for Oct-Dec 2003
    ... Bluetooth stack for FreeBSD ... Not much to report. ... Bluetooth kernel modules appear to be stable. ... concerns and some src committers are willing to commit the patches. ...
    (freebsd-current)
  • FreeBSD Status Report for Oct-Dec 2003
    ... Bluetooth stack for FreeBSD ... Not much to report. ... Bluetooth kernel modules appear to be stable. ... concerns and some src committers are willing to commit the patches. ...
    (freebsd-hackers)
  • FreeBSD Status Report for Oct-Dec 2003
    ... Bluetooth stack for FreeBSD ... Not much to report. ... Bluetooth kernel modules appear to be stable. ... concerns and some src committers are willing to commit the patches. ...
    (freebsd-stable)
  • RE: FreeBSD 4.11 P13 Crash
    ... I do not want to jinx myself, but after back revving to FreeBSD 4.9 + ... think it is related to IPFilter in conjunction with 4 Intel nics and/or ... page fault while in kernel mode ... Okay this time my kernel was recompiled so there are no modules to ...
    (freebsd-hackers)
  • Re: 5.3 interrupt storm (atapicam) and I/O error
    ... attached you will find a copy of my custom kernel ... config which did work without any issue under FreeBSD ... The following hardware configuration *won't* cause ... * harddrive attached to IDE channel #1 ...
    (freebsd-questions)