* NPTL
@ 2005-04-08 17:11 Greg Weeks
2005-04-08 17:20 ` NPTL sjhill
0 siblings, 1 reply; 12+ messages in thread
From: Greg Weeks @ 2005-04-08 17:11 UTC (permalink / raw)
To: linux-mips
I saw the kernel support patch (TLS) a while back and ment to ask what
state the gcc/glibc patches were in. Has either been picked up into the
gnu projects yet? If they're close I might try building a toolchain and
root file system with NPTL to try our test suite on.
Greg Weeks
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: NPTL
2005-04-08 17:11 NPTL Greg Weeks
@ 2005-04-08 17:20 ` sjhill
2005-04-08 17:21 ` NPTL Daniel Jacobowitz
2005-04-08 17:25 ` NPTL Manish Lachwani
0 siblings, 2 replies; 12+ messages in thread
From: sjhill @ 2005-04-08 17:20 UTC (permalink / raw)
To: Greg Weeks; +Cc: linux-mips
> I saw the kernel support patch (TLS) a while back and ment to ask what
> state the gcc/glibc patches were in. Has either been picked up into the
> gnu projects yet? If they're close I might try building a toolchain and
> root file system with NPTL to try our test suite on.
>
The kernel patch has not gone in and probably will not until a lot more
testing has been done. All of the changes to binutils, gcc and glibc
have been checked in and are available from HEAD of cvs for respective
repositories.
-Steve
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: NPTL
2005-04-08 17:20 ` NPTL sjhill
@ 2005-04-08 17:21 ` Daniel Jacobowitz
2005-04-08 17:23 ` NPTL sjhill
2005-04-08 17:25 ` NPTL Manish Lachwani
1 sibling, 1 reply; 12+ messages in thread
From: Daniel Jacobowitz @ 2005-04-08 17:21 UTC (permalink / raw)
To: sjhill; +Cc: Greg Weeks, linux-mips
On Fri, Apr 08, 2005 at 12:20:09PM -0500, sjhill@realitydiluted.com wrote:
> > I saw the kernel support patch (TLS) a while back and ment to ask what
> > state the gcc/glibc patches were in. Has either been picked up into the
> > gnu projects yet? If they're close I might try building a toolchain and
> > root file system with NPTL to try our test suite on.
> >
> The kernel patch has not gone in and probably will not until a lot more
> testing has been done.
Why do you say that?
--
Daniel Jacobowitz
CodeSourcery, LLC
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: NPTL
2005-04-08 17:21 ` NPTL Daniel Jacobowitz
@ 2005-04-08 17:23 ` sjhill
2005-04-08 18:18 ` NPTL Daniel Jacobowitz
0 siblings, 1 reply; 12+ messages in thread
From: sjhill @ 2005-04-08 17:23 UTC (permalink / raw)
To: Daniel Jacobowitz; +Cc: sjhill, Greg Weeks, linux-mips
> > The kernel patch has not gone in and probably will not until a lot more
> > testing has been done.
>
> Why do you say that?
>
I just made that assumption based on the fact that it is not in CVS
yet, at least it was not yesterday. Did I mis-speak?
-Steve
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: NPTL
2005-04-08 17:23 ` NPTL sjhill
@ 2005-04-08 18:18 ` Daniel Jacobowitz
0 siblings, 0 replies; 12+ messages in thread
From: Daniel Jacobowitz @ 2005-04-08 18:18 UTC (permalink / raw)
To: sjhill; +Cc: Greg Weeks, linux-mips
On Fri, Apr 08, 2005 at 12:23:35PM -0500, sjhill@realitydiluted.com wrote:
> > > The kernel patch has not gone in and probably will not until a lot more
> > > testing has been done.
> >
> > Why do you say that?
> >
> I just made that assumption based on the fact that it is not in CVS
> yet, at least it was not yesterday. Did I mis-speak?
I imagine it will go in exactly when Ralf and Maciej are ready for it
to :-) It is extremely well tested already.
--
Daniel Jacobowitz
CodeSourcery, LLC
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: NPTL
2005-04-08 17:20 ` NPTL sjhill
2005-04-08 17:21 ` NPTL Daniel Jacobowitz
@ 2005-04-08 17:25 ` Manish Lachwani
1 sibling, 0 replies; 12+ messages in thread
From: Manish Lachwani @ 2005-04-08 17:25 UTC (permalink / raw)
To: sjhill; +Cc: Greg Weeks, linux-mips
sjhill@realitydiluted.com wrote:
>>I saw the kernel support patch (TLS) a while back and ment to ask what
>>state the gcc/glibc patches were in. Has either been picked up into the
>>gnu projects yet? If they're close I might try building a toolchain and
>>root file system with NPTL to try our test suite on.
>>
>>
>>
>The kernel patch has not gone in and probably will not until a lot more
>testing has been done. All of the changes to binutils, gcc and glibc
>have been checked in and are available from HEAD of cvs for respective
>repositories.
>
>-Steve
>
>
>
Steve,
I thought the kernel patch was well tested by Daniel.
Thanks
Manish Lachwani
^ permalink raw reply [flat|nested] 12+ messages in thread
[parent not found: <a9e22dff0707120518q16aeae73p2905226abbadd03d@mail.gmail.com>]
* NPTL
[not found] <a9e22dff0707120518q16aeae73p2905226abbadd03d@mail.gmail.com>
@ 2007-07-12 12:18 ` Ni@m
2007-07-12 12:27 ` NPTL David Schwartz
0 siblings, 1 reply; 12+ messages in thread
From: Ni@m @ 2007-07-12 12:18 UTC (permalink / raw)
To: LKML
Hi!
I have a question about NPTL.
Are NPTL are still based on `clone` system call? Are NPTL threads are
"processes" internally?
Thanks!
^ permalink raw reply [flat|nested] 12+ messages in thread* RE: NPTL
2007-07-12 12:18 ` NPTL Ni@m
@ 2007-07-12 12:27 ` David Schwartz
2007-07-12 12:37 ` NPTL Ni@m
0 siblings, 1 reply; 12+ messages in thread
From: David Schwartz @ 2007-07-12 12:27 UTC (permalink / raw)
To: LKML
> Hi!
> I have a question about NPTL.
> Are NPTL are still based on `clone` system call?
Yes.
> Are NPTL threads are
> "processes" internally?
No. By definition, all the threads belong to a single process. NPTL threads
are based on KSEs (kernel scheduling entities). A non-threaded process is
also a KSE. A threaded process is more than one KSEs. All KSE are,
obviously, scheduled by the kernel.
> Thanks!
You're welcome.
DS
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: NPTL
2007-07-12 12:27 ` NPTL David Schwartz
@ 2007-07-12 12:37 ` Ni@m
2007-07-12 12:41 ` NPTL Peter Zijlstra
` (2 more replies)
0 siblings, 3 replies; 12+ messages in thread
From: Ni@m @ 2007-07-12 12:37 UTC (permalink / raw)
To: davids, LKML
So I can say that in linux 'thread' == 'process'?
Is kernel routine 'kthread' creating a process?
I'm just thinking on this subject: if to create 'real threads' - will
it increase performance? Should I ever think in this way?
When I say 'real thread' - I mean the thread that doen't switch
context when it's starting to run.
On 7/12/07, David Schwartz <davids@webmaster.com> wrote:
>
> > Hi!
> > I have a question about NPTL.
> > Are NPTL are still based on `clone` system call?
>
> Yes.
>
> > Are NPTL threads are
> > "processes" internally?
>
> No. By definition, all the threads belong to a single process. NPTL threads
> are based on KSEs (kernel scheduling entities). A non-threaded process is
> also a KSE. A threaded process is more than one KSEs. All KSE are,
> obviously, scheduled by the kernel.
>
> > Thanks!
>
> You're welcome.
>
> DS
>
>
> -
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at http://www.tux.org/lkml/
>
^ permalink raw reply [flat|nested] 12+ messages in thread* Re: NPTL
2007-07-12 12:37 ` NPTL Ni@m
@ 2007-07-12 12:41 ` Peter Zijlstra
2007-07-12 12:52 ` NPTL jimmy bahuleyan
2007-07-12 12:58 ` NPTL David Schwartz
2 siblings, 0 replies; 12+ messages in thread
From: Peter Zijlstra @ 2007-07-12 12:41 UTC (permalink / raw)
To: Ni@m; +Cc: davids, LKML
On Thu, 2007-07-12 at 15:37 +0300, Ni@m wrote:
> So I can say that in linux 'thread' == 'process'?
No, a process also contains an address space.
> Is kernel routine 'kthread' creating a process?
No, that is creating a schedule unit (task) without an address space.
> I'm just thinking on this subject: if to create 'real threads' - will
> it increase performance? Should I ever think in this way?
> When I say 'real thread' - I mean the thread that doen't switch
> context when it's starting to run.
Surely you need some context switch when switching between runnable
contexts.
BTW, please do _NOT_ top post!
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: NPTL
2007-07-12 12:37 ` NPTL Ni@m
2007-07-12 12:41 ` NPTL Peter Zijlstra
@ 2007-07-12 12:52 ` jimmy bahuleyan
2007-07-12 12:58 ` NPTL David Schwartz
2 siblings, 0 replies; 12+ messages in thread
From: jimmy bahuleyan @ 2007-07-12 12:52 UTC (permalink / raw)
To: Ni@m; +Cc: davids, LKML
Ni@m wrote:
> So I can say that in linux 'thread' == 'process'?
>
No. It's more like, in linux threads are visible to the kernel (unlike
in N:1 thread models, linux is 1:1). Threads are the basic unit of
scheduling.
A process can have >1 threads.
> Is kernel routine 'kthread' creating a process?
> I'm just thinking on this subject: if to create 'real threads' - will
> it increase performance? Should I ever think in this way?
> When I say 'real thread' - I mean the thread that doen't switch
> context when it's starting to run.
>
What do you mean by context?
Each thread has it's own stack, registers, etc. which form it's context.
A process has more info like file descriptors, IPC resources, virtual
memory info. Between scheduling threads of the same process these stay same.
-jb
--
Tact is the art of making a point without making an enemy.
^ permalink raw reply [flat|nested] 12+ messages in thread
* RE: NPTL
2007-07-12 12:37 ` NPTL Ni@m
2007-07-12 12:41 ` NPTL Peter Zijlstra
2007-07-12 12:52 ` NPTL jimmy bahuleyan
@ 2007-07-12 12:58 ` David Schwartz
2 siblings, 0 replies; 12+ messages in thread
From: David Schwartz @ 2007-07-12 12:58 UTC (permalink / raw)
To: LKML
> So I can say that in linux 'thread' == 'process'?
No. A process can have any number of threads.
> Is kernel routine 'kthread' creating a process?
No, since a process can have more than one thread.
> I'm just thinking on this subject: if to create 'real threads' - will
> it increase performance? Should I ever think in this way?
> When I say 'real thread' - I mean the thread that doen't switch
> context when it's starting to run.
I don't follow.
The kernel sometimes calls a KSE a 'process'. This is largely a legacy from
when there was a one-to-one correspondence between KSEs and processes.
However, this is no longer the case. In Linux, 'KSE' == 'thread'.
DS
^ permalink raw reply [flat|nested] 12+ messages in thread
end of thread, other threads:[~2007-07-12 12:59 UTC | newest]
Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-04-08 17:11 NPTL Greg Weeks
2005-04-08 17:20 ` NPTL sjhill
2005-04-08 17:21 ` NPTL Daniel Jacobowitz
2005-04-08 17:23 ` NPTL sjhill
2005-04-08 18:18 ` NPTL Daniel Jacobowitz
2005-04-08 17:25 ` NPTL Manish Lachwani
[not found] <a9e22dff0707120518q16aeae73p2905226abbadd03d@mail.gmail.com>
2007-07-12 12:18 ` NPTL Ni@m
2007-07-12 12:27 ` NPTL David Schwartz
2007-07-12 12:37 ` NPTL Ni@m
2007-07-12 12:41 ` NPTL Peter Zijlstra
2007-07-12 12:52 ` NPTL jimmy bahuleyan
2007-07-12 12:58 ` NPTL David Schwartz
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.