Messages in this thread | | | Date | Tue, 18 May 1999 19:56:55 +0100 (GMT) | From | Matthew Kirkwood <> | Subject | Re: send_sigio() scalability |
| |
On Mon, 17 May 1999, Richard Gooch wrote:
> 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.
> 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.
Alternatively, if pid>0 use find_task_by_pid, which uses the pid hash instead.
Matthew.
- 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/
| |