Date: Thu, 6 Oct 2011 16:41:45 +0200 (CEST) From: Wojciech Puchar <wojtek@wojtek.tensor.gdynia.pl> To: hackers@freebsd.org Cc: Grzegorz Kulewski <grzegorz@kulewski.pl> Subject: mmap performance and memory use Message-ID: <alpine.BSF.2.00.1110061637270.15552@wojtek.tensor.gdynia.pl>
next in thread | raw e-mail | index | archive | help
i have few questions. 1) suppose i map 1TB of address space as anonymous and touch just one page. how much memory is used to manage this? 2) suppose we have 1TB file on disk without holes and 100000 processes mmaps this file to it's address space. are just pages shared or can pagetables be shared too? how much memory is used to manage such situation? yes this is a real question - assume most of these processes are mostly sleeping but every now and then do something and work of some set of pages from this file and there is enough memory in computer to keep this working set, but only if managing it by OS will not overuse memory.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?alpine.BSF.2.00.1110061637270.15552>