Gentoo Archives: gentoo-dev

From: Arun Raghavan <arunisgod@×××××.com>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] threads vs. smp
Date: Sun, 08 Jun 2008 14:14:34
Message-Id: c1c082b90806080714q5eaf1cabld7b1a7fbb190abbd@mail.gmail.com
In Reply to: [gentoo-dev] threads vs. smp by "Hanno Böck"
1 On Sun, Jun 8, 2008 at 6:04 PM, Hanno Böck <hanno@g.o> wrote:
2 > I got this bug and as I don't know if this is correct what the user says (no
3 > idea about smp), I'm posting this here for comments:
4 >
5 > https://bugs.gentoo.org/show_bug.cgi?id=224729
6
7 Looks like there are 3 possible uses of the threads/smp USE flags:
8
9 1) Add support for a threading API in a library/language (for example
10 in dev-lisp/sbcl)
11
12 2) Add support for threading in an application (www-servers/apache, for exmple)
13
14 3) Add support for a multi-processor machine -- this is different from
15 (2) in that the application doesn't really gain anything if this is
16 used on a uni-processor machine (sys-cluster/charm seems to fall in
17 this category)
18
19 I guess it would be consistent to use "threads" for (1) and (2), and
20 "smp" for (3).
21
22 Now, as for Gimp, grokking through the sources shows that "--with-mp"
23 basically lets some processing stuff run in separate threads. This is
24 clearly only useful on SMT/CMP/SMP machines, so I think USE=smp is
25 fine.
26
27 The user's complaint could be valid, though. Perhaps "smp" should be a
28 global USE flag.
29
30 Cheers,
31 --
32 Arun Raghavan
33 (http://nemesis.accosted.net)
34 v2sw5Chw4+5ln4pr6$OFck2ma4+9u8w3+1!m?l7+9GSCKi056
35 e6+9i4b8/9HTAen4+5g4/8APa2Xs8r1/2p5-8 hackerkey.com
36 --
37 gentoo-dev@l.g.o mailing list