Re: SMP/cc Cluster description

From: Alan Cox (alan@lxorguk.ukuu.org.uk)
Date: Thu Dec 06 2001 - 17:55:37 EST


> > ftruncate
>
> I'm not sure what the point is. We've already agreed that the multiple OS
> instances will have synchonization to do for file operations, ftruncate
> being one of them.
>
> I thought the question was how N user processes do locking and my answer
> stands: exactly like they'd do it on an SMP, with mutex_enter()/exit() on
> some portion of the mapped file. The mapped file is just a chunk of cache

ftrucate invalidates that memory under you, on all nodes. That means you do
end up needing cross node locking and your file operations simply won't lie
down and scale cleanly

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Fri Dec 07 2001 - 21:00:36 EST