Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752097AbbFYM4O (ORCPT ); Thu, 25 Jun 2015 08:56:14 -0400 Received: from cantor2.suse.de ([195.135.220.15]:47240 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750988AbbFYM4G (ORCPT ); Thu, 25 Jun 2015 08:56:06 -0400 Date: Thu, 25 Jun 2015 14:56:04 +0200 From: Michal Hocko To: Mark Hills Cc: Vlastimil Babka , linux-mm@kvack.org, Mel Gorman , Johannes Weiner , LKML Subject: Re: Write throughput impaired by touching dirty_ratio Message-ID: <20150625125604.GE17237@dhcp22.suse.cz> References: <1506191513210.2879@stax.localdomain> <558A69F8.2080304@suse.cz> <1506242140070.1867@stax.localdomain> <20150625092056.GB17237@dhcp22.suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20150625092056.GB17237@dhcp22.suse.cz> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2037 Lines: 50 On Thu 25-06-15 11:20:56, Michal Hocko wrote: [...] > From your /proc/zoneinfo: > > Node 0, zone HighMem > > pages free 2536526 > > min 128 > > low 37501 > > high 74874 > > scanned 0 > > spanned 3214338 > > present 3017668 > > managed 3017668 > > You have 11G of highmem. Which is a lot wrt. the the lowmem > > > Node 0, zone Normal > > pages free 37336 > > min 4789 > > low 5986 > > high 7183 > > scanned 0 > > spanned 123902 > > present 123902 > > managed 96773 > > which is only 378M! So something had to eat portion of the lowmem. And just to clarify. Your lowmem has only 123902 pages (+DMA zone which has 16M so it doesn't add much) which is ~480M. The lowmem can sit only in the low 1G (actually less because part of that is used by kernel for special mappings). You only have half of that because, presumably some HW has reserved portion of that address range. So your lowmem zone is really tiny. Now part of that range is used for kernel stuff like struct pages which have to describe the full memory and this is eating quite a lot for 3 million pages. So you ended up with only 378M really usable for all the kernel allocations which cannot live in the highmem (and there are many of those). This makes a large memory pressure on that zone even though you might have huge amount of highmem free. This is the primary reason why PAE kernels are not really usable for large memory setups in general. A very specific usecases might work but even then I would have to a very strong reason to stick with 32b kernel (e.g. a stupid out of tree driver which is 32b specific or something similar). -- Michal Hocko SUSE Labs -- 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/