Re: Before & After Under The Giant Lock



2007/11/25, Stephen Montgomery-Smith <stephen@xxxxxxxxxxxxxxxxx>:


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!

Actually, some worksets can get a higher speedup since you usually
double your cache size going from one to two cpus (core 2 duo has a
shared cache). Should the problem be big enough not to fit in one
cpu's cache but small enough to fit in two cpu's caches, you can get
more than 2 times speedup.

/Johan
_______________________________________________
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

  • SMP on FreeBSD 6.x and 7.0: Worth doing?
    ... I will need to build several Web caches over the next few months, and just took advantage of the Christmas lull to test FreeBSD 7.0 BETA 4 to see how it will perform at this task. ... I built up a 4 core FreeBSD box, and asked a friend who's a Linux fanatic to do the same with Linux on identical hardware. ... The fetches done by each process are the same batch of URLS, but shuffled differently, so each URL will get a miss the first time and then hits each time it comes up thereafter unless the cache overflows. ... Could it be that there less concurrency or more overhead in FreeBSD file operations than there is in Linux? ...
    (freebsd-stable)
  • MegaRAID lockups under 5.5 PRELEASE
    ... on-board battery backed cache, while the main machine has 256Mb. ... FreeBSD and this model of controller. ... after some driver improvements by Scott Long. ... the other box has remained stable after the same upgrade, ...
    (freebsd-stable)
  • Re: How does disk caching work?
    ... > Is there a document anywhere that describes in detail how FreeBSD ... > such as 'FreeBSD uses all available memory for disk caching'. ... MEMORY IS A BUFFER CACHE for all device IO. ...
    (freebsd-performance)
  • Re: Concealing short disconnects
    ... >I have a few machines behind my FreeBSD box. ... >to ISP via ppp (PPPoE protocol). ... >reconnect in just a moment - so the diconnect is usually less ... that acts as a cache hold a few seconds of network traffic that would ...
    (freebsd-questions)
  • Re: Problems reclaiming VM cache = XFree86 startup annoyance
    ... > hassle. ... I don't know what is causing your problem, but 'cache' pages in FreeBSD ... So the number of pages 'cache' vs. 'free' isn't the cause of the problem. ... > The latter two were in response to an installation message of a port I ...
    (freebsd-stable)