From mboxrd@z Thu Jan 1 00:00:00 1970 From: Evgeniy Polyakov Subject: Re: [take6 1/3] kevent: Core files. Date: Fri, 11 Aug 2006 10:15:35 +0400 Message-ID: <20060811061535.GA11230@2ka.mipt.ru> References: <11551105592821@2ka.mipt.ru> <11551105602734@2ka.mipt.ru> <20060809152127.481fb346.akpm@osdl.org> <20060810061433.GA4689@2ka.mipt.ru> <20060810001844.ff5e7429.akpm@osdl.org> <20060810075047.GB24370@2ka.mipt.ru> <20060810010254.3b52682f.akpm@osdl.org> <20060810082235.GA21025@2ka.mipt.ru> <20060810175639.b64faaa9.akpm@osdl.org> Mime-Version: 1.0 Content-Type: text/plain; charset=koi8-r Cc: lkml , David Miller , Ulrich Drepper , netdev , Zach Brown Return-path: Received: from relay.2ka.mipt.ru ([194.85.82.65]:41350 "EHLO 2ka.mipt.ru") by vger.kernel.org with ESMTP id S1751595AbWHKGQR (ORCPT ); Fri, 11 Aug 2006 02:16:17 -0400 To: Andrew Morton Content-Disposition: inline In-Reply-To: <20060810175639.b64faaa9.akpm@osdl.org> Sender: netdev-owner@vger.kernel.org List-Id: netdev.vger.kernel.org On Thu, Aug 10, 2006 at 05:56:39PM -0700, Andrew Morton (akpm@osdl.org) wrote: > > Per kevent fd. > > I have some ideas about better mmap ring implementation, which would > > dinamically grow it's buffer when events are added and reuse the same > > place for next events, but there are some nitpics unresolved yet. > > Let's not see there in next releases (no merge of course), until better > > solution is ready. I will change that area when other things are ready. > > This is not a problem with the mmap interface per-se. If the proposed > event code permits each user to pin 160MB of kernel memory then that would > be a serious problem. The main disadvantage is that all memory is allocated on the start even if it will not be used later. I think dynamic grow is appropriate solution, since user will have that memory used anyway, since kevents are allocated, just part of them will be allocated from possibly mmaped memory. -- Evgeniy Polyakov