From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andrew Morton Subject: Re: [take6 1/3] kevent: Core files. Date: Thu, 10 Aug 2006 01:02:54 -0700 Message-ID: <20060810010254.3b52682f.akpm@osdl.org> 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> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: lkml , David Miller , Ulrich Drepper , netdev , Zach Brown Return-path: Received: from smtp.osdl.org ([65.172.181.4]:1718 "EHLO smtp.osdl.org") by vger.kernel.org with ESMTP id S1161111AbWHJIDi (ORCPT ); Thu, 10 Aug 2006 04:03:38 -0400 To: Evgeniy Polyakov In-Reply-To: <20060810075047.GB24370@2ka.mipt.ru> Sender: netdev-owner@vger.kernel.org List-Id: netdev.vger.kernel.org On Thu, 10 Aug 2006 11:50:47 +0400 Evgeniy Polyakov wrote: > > Afaict this mmap function gives a user a free way of getting pinned memory. > > What is the upper bound on the amount of memory which a user can thus > > obtain? > > it is limited by maximum queue length which is 4k entries right now, so > maximum number of paged here is 4k*40/page_size, i.e. about 40 pages on > x86. Is that per user or per fd? If the latter that is, with the usual RLIMIT_NOFILE, 160MBytes. 2GB with 64k pagesize. Problem ;)