public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Kernel threads resource leakage
@ 2003-08-14 20:36 Richard B. Johnson
  2003-08-14 21:29 ` Vladimir Kondratiev
  0 siblings, 1 reply; 2+ messages in thread
From: Richard B. Johnson @ 2003-08-14 20:36 UTC (permalink / raw)
  To: vladimir.kondratiev; +Cc: Linux kernel

[-- Attachment #1: Type: TEXT/PLAIN, Size: 813 bytes --]


I am using a 2.4.20 kernel. I tried your program.
First, it didn't compile. So I would guess that you
never tested your test program. I fixed it and I
made a more readily useful Makefile, etc., so others
can try it, too. It is attached.

It works. It doesn't eat any resources. I guess that
the stuff that actually does 'work' in your actual
driver module is what is consuming resources.

Although making and deleting a number of kernel threads
is an interesting exercise, I sure hope that you don't
really do this in a real application. It is very expensive
to do this. If you need a kernel thread, you should have
one (or several) that do the work and never exit.

Cheers,
Dick Johnson
Penguin : Linux version 2.4.20 on an i686 machine (797.90 BogoMips).
            Note 96.31% of all statistics are fiction.

[-- Attachment #2: Type: APPLICATION/octet-stream, Size: 5460 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2003-08-14 21:32 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-08-14 20:36 Kernel threads resource leakage Richard B. Johnson
2003-08-14 21:29 ` Vladimir Kondratiev

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox