From mboxrd@z Thu Jan 1 00:00:00 1970 From: Evgeniy Polyakov Subject: Re: [PATCH][RFC 23/23]: Support for zero-copy TCP transmit of user space data Date: Wed, 24 Dec 2008 21:08:41 +0300 Message-ID: <20081224180841.GA615@ioremap.net> References: <494C8D57.7040808@goop.org> <20081220065105.GA16936@gondor.apana.org.au> <494CA226.9000200@goop.org> <20081220081045.GA17439@gondor.apana.org.au> <20081220103209.GA23632@ioremap.net> <49513909.1050100@vlnb.net> <20081223213817.GB16883@ioremap.net> <4952493F.10508@vlnb.net> <20081224144422.GA25089@ioremap.net> <49527590.7090909@vlnb.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Herbert Xu , Jeremy Fitzhardinge , linux-scsi@vger.kernel.org, James Bottomley , Andrew Morton , FUJITA Tomonori , Mike Christie , Jeff Garzik , Boaz Harrosh , Linus Torvalds , linux-kernel@vger.kernel.org, scst-devel@lists.sourceforge.net, Bart Van Assche , "Nicholas A. Bellinger" , netdev@vger.kernel.org, Rusty Russell , David Miller , Alexey Kuznetsov To: Vladislav Bolkhovitin Return-path: Content-Disposition: inline In-Reply-To: <49527590.7090909@vlnb.net> Sender: linux-scsi-owner@vger.kernel.org List-Id: netdev.vger.kernel.org On Wed, Dec 24, 2008 at 08:46:56PM +0300, Vladislav Bolkhovitin (vst@vlnb.net) wrote: > I think in most cases there would be possibility to embed > sk_transaction_token to some higher level structure. E.g. Xen apparently > should have something to track packets passed through host/guest > boundary. From other side, kmem cache is too well polished to have much > overhead. I doubt, you would even notice it in this application. In most > cases allocation of such small object in it using SLUB is just about the > same as a list_del() under disabled IRQs. I definitely would not rely on that, especially at cache reclaim time. But it of course depends on the workload and maybe appropriate for the cases in question. The best solution I think is to combine tag and separate destructur, so that those who do not want to allocate a token could still get notification via destructor callback. -- Evgeniy Polyakov