lkml.org 
[lkml]   [1999]   [May]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
Subjectsend_sigio() scalability
  Hi, all. I just noticed that send_sigio() walks the task list,
looking for the process(es) to send a signal to. This appears to be a
potential scalability problem, as a large number of tasks is going to
slow this down.

Has anyone done any benchmarking to evaluate the effect of this? In
the absence of numbers, how about some convincing handwaving? Is it
worth exploring options to fix this?

I can think of one quick and simple hack to fix this for 90% (maybe
99%) of cases: record the task pointer at fcntl() time. Then at
send_sigio() time, if the recorded pid and task match, skip the
task list walk.

Regards,

Richard....

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:51    [W:0.042 / U:1.288 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site