Thread scheduling in 2.6 kernels

Mulyadi Santosa mulyadi.santosa at gmail.com
Fri Feb 25 09:26:48 EST 2011


Hi Mandeep :)

On Fri, Feb 25, 2011 at 12:57, Mandeep Sandhu
<mandeepsandhu.chd at gmail.com> wrote:
>> Nope, tls here refers to "thread".....
>
> Ok, got it...you're referring to Thread Local Storage. I think you
> meant for me to search "/lib/tls" _path_ in the addr space mappings of
> my main process, right?

> Googling also shows that libtls is the TLS library
>
> I did not see any tls dir entries in my process' addr map:
>
> $ cat /proc/<my apps' pid>/maps | grep tls
> $

Here's mine, in x86:
$ cat /proc/self/maps
001e8000-0033b000 r-xp 00000000 08:08 133713
/lib/tls/i686/cmov/libc-2.11.1.so
0033b000-0033c000 ---p 00153000 08:08 133713
/lib/tls/i686/cmov/libc-2.11.1.so
0033c000-0033e000 r--p 00153000 08:08 133713
/lib/tls/i686/cmov/libc-2.11.1.so
0033e000-0033f000 rw-p 00155000 08:08 133713
/lib/tls/i686/cmov/libc-2.11.1.so
.....



> As a matter of fact, there's no /lib/tls dir at all!

OK, now that's something I don't know why...

> But I'm not sure if this means that NPTL is NOT supported....because I
> can see the individual threads under the 'task' of my apps' /proc
> listing...

it could mean that it uses the old pthread method...

-- 
regards,

Mulyadi Santosa
Freelance Linux trainer and consultant

blog: the-hydra.blogspot.com
training: mulyaditraining.blogspot.com



More information about the Kernelnewbies mailing list