Re: help with huge memory consumption??



"David Schwartz" <davids@xxxxxxxxxxxxx> writes:
On Mar 7, 1:23 am, Rainer Weikusat <rainer.weiku...@xxxxxxxxx> wrote:
It costs some time to create a process, and threads don't have that
time, so threads must be better.

On a system that has only ever supported 1:1 threading as default
model, 'process creation' being much slower than 'thread creation'
would be a strong hint at a deficiency in the kernel. But reportedly, the
difference is negligible on Linux, so your assumption should be
wrong. And it is a strawman, except if you constrict yourself to a set
of real-world cases where the reason you try to shoot down actually
was the reason to use threads.

This is a nonsensical reply.

It should be easy for you, then, to not only label it the way you
would like others to regard it, but to point out in detail which parts
of it are nonsensical for what reasons.

Hic Rhodos, hic salta.

Thread creation is in no way analogous to process creation.

On Linux, using the default threading implementation, both are
ultimatively created by using the same system call (clone(2)) and
implemented with the same system mechanism (things the kernel sees as
'tasks' by means of a struct task_struct), so they are not only
analogous but nearly identical.

Threads are reusable, processes are not.

What is 'threads are reusable' supposed to mean?
.



Relevant Pages

  • Re: help with huge memory consumption??
    ... 'process creation' being much slower than 'thread creation' ... would be a strong hint at a deficiency in the kernel. ... was the reason to use threads. ...
    (comp.os.linux.development.system)
  • Re: [PATCH] CodingStyle: add typedefs chapter
    ... The reason we have them for things like pte_t etc. is that there ... then by all means go ahead and use a typedef. ... New types which are identical to standard C99 types, ... covers RTL which is used frequently with assembly language in the kernel. ...
    (Linux-Kernel)
  • Re: Forth for Mac OS X Leopard (Intel) - what are the options?
    ... As I understand it even FreeBSD binaries are elf. ... If the .data section works for the kernel part of xina, ... The official way is to use linker scripts. ... For some reason a normal start address in linux32 is around ...
    (comp.lang.forth)
  • Re: SuSE: migrating tot linux software RAID?
    ... > third machine with a megaraid that crashed because of this kernel ... >> The reason that you had data loss at all... ... > I had backups and successfully restored the system after a full install. ...
    (alt.os.linux.suse)
  • Re: eradicating out of tree modules (was: : Linux Security *Module* Framework)
    ... reasons, won't ever be accepted into the mainline kernel tree, what you ... crashes of "the Linux kernel" caused by some binary-only driver. ... it's still a reason for fixing the real problem. ...
    (Linux-Kernel)