[Devel] Re: Kernel text size with pid namespace
Pavel Emelyanov
xemul at openvz.org
Thu Sep 20 04:55:01 PDT 2007
Paul Jackson wrote:
>>> functions are used in process creation/termination, we would need to
>>> keep them inline, when optimizing for performance.
>> I'd keep them inline for performance reasons.
>
> As Matt Mackall explained more carefully in his reply, it's no longer
> clear that inlining is best for performance in as many situations as
> it was the past. Cache footprint size tends to dominate performance on
> present day processors.
True, but AFAIR, when I developed the namespaces I tried to move
the task_pid_nr etc calls in kernel/pid.c and the performance on
unixbench spawn and nptlperf tests became worse. That's why I said
that I'd keep them inline.
> See also Matt's comments on the NULL struct pid check. Getting rid
> of conditional jumps may be the more important performance issue here.
That's a valid argument. I will look over it.
Thanks,
Pavel
_______________________________________________
Containers mailing list
Containers at lists.linux-foundation.org
https://lists.linux-foundation.org/mailman/listinfo/containers
More information about the Devel
mailing list