On 07/11/10 20:46, ольга крыжановская wrote:
Perf team, has any one been interested in implementing posix_spawn()
as system call to improve performance? posix_spawn() is implemented as
sequence of vforkx and execve currently with many intermediate system
calls around it. From by looking at it and the kernel code of vforkx
and execve it might be beneficial to turn the whole thing into one
single system call.

Olga

The overhead cost of a system call is about the same as a L3 cache miss:
of order 150 ns.  Given the general expense in creating a new process by
any means, this would not be my first place to look for performance
wins.

Instead, consider reducing the number of libraries needed instead; by
folding more libraries into libc, we can avoid all the overhead
associated with setting up extra text and data segments for each library. This would speed up both process creation and destruction.

- Bart






--
Bart Smaalders                  Solaris Kernel Performance
bart.smaald...@oracle.com       http://blogs.sun.com/barts
"You will contribute more with mercurial than with thunderbird."
_______________________________________________
on-discuss mailing list
on-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/on-discuss

Reply via email to