Re: [patch 1/2] fork_connector: add a fork connector

Jesse Barnes
2005-03-17T22:07:48Z

On Thursday, March 17, 2005 1:38 pm, Evgeniy Polyakov wrote:
> The most significant part there - is requirement to store
> u32 seq in each CPU's cache and thus flush cacheline +
> invalidate/get from mem on each other cpus
> each time it is accessed, which is a big price.

Same thing has to happen with the lock. To put it simply, writing global
variables from multiple CPUs with anything other than very low frequency is
bad.

> It is totally Guillaume's work - so he decides,
> I would recomend per cpu counters and processor's
> id in each message.
> And of course userspace should take care of misordered
> messages.
> I personally prefer such mechanism.

Yep, I agree. Hopefully Guillaume will too :)

Jesse