Re: [RFC] do_execve() perf improvement opportunity?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, 21 Jun 2005 [email protected] wrote:

> I'm thinking it may be possible to very cheaply cache a pointer to the 
> last allocation here rather than freeing it and just recycle it for the 
> next exec saving a trip through the slab machanism.

Note that the slab mechanism can do allocations locally
on each CPU in an SMP system, while your pointer would
need some cross-CPU synchronisation.  Also, you could
end up using the bprm from a CPU on a remote NUMA node,
instead of a local piece of memory.

Still, it would be interesting/educational to know if your
optimisation makes a difference on single CPU systems.

-- 
The Theory of Escalating Commitment: "The cost of continuing mistakes is
borne by others, while the cost of admitting mistakes is borne by yourself."
  -- Joseph Stiglitz, Nobel Laureate in Economics
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux