Re: Before & After Under The Giant Lock



Hello,

Quoting Robert Watson <rwatson@xxxxxxxxxxx>:

No problem -- just to be clear: in 7, users can still choose between
libpthread (m:n) and libthr (1:1), but the default is now libthr rather than
libpthread, as libthr seemed to perform better in most if not all workloads
of
interest.

I thought 1:1 would perform better with I/O bound processes running several
threads.
But wouldn't a process rely on a few I/O threads for several other CPU bound
threads ? (unless specific activities such as a web server, or a database, which
would explain MySQL performing better with 1:1)

Or, to make my point (somewhat) clearer: how did you actually compare advantages
of 1:1 versus M:N when the change from the latter to the former was decided ?

And second question: would it be possible to dynamically choose one way over the
other: meaning if you know you're mostly I/O bound, then request for the 1:1
type of threads, and vice versa ?

thanks,
gregory
_______________________________________________
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

  • Re: libc_r is deprecated
    ... In the libthr vs. libpthread ... it could well be that libpthread reduces kernel lock ...
    (freebsd-arch)
  • Re: libc_r is deprecated
    ... libpthread, and libthr is way behind. ... how libpthread doesn't handle SMP scheduling well either. ... especially embarresing because libc_r is a single process, ...
    (freebsd-arch)
  • Re: libc_r is deprecated
    ... libpthread, and libthr is way behind. ... how libpthread doesn't handle SMP scheduling well either. ... especially embarresing because libc_r is a single process, ...
    (freebsd-arch)
  • Re: Building a new workstation - dual or quad-core CPU for FreeBSD 7?
    ... so performance may not suffer much from libpthread. ... Oh I wasn't sure if libthr was the preferred thread library for 6.2 ... RAID1OS array with mysql logs, replication logs, ... RAID1+0innodb mysql data. ...
    (freebsd-questions)
  • Re: Looks like threading is b0rken on FreeBSD/powerpc
    ... I think you might want to try point libpthread at libthr with ... for libpthread. ... when checking the errno set after calling accessto check if a file ... there is a plan to bump libthr version when symbol versioning ...
    (freebsd-current)