Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752384AbbHTIQy (ORCPT ); Thu, 20 Aug 2015 04:16:54 -0400 Received: from mx2.suse.de ([195.135.220.15]:42958 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751523AbbHTIQq (ORCPT ); Thu, 20 Aug 2015 04:16:46 -0400 Subject: Re: difficult to pinpoint exhaustion of swap between 4.2.0-rc6 and 4.2.0-rc7 To: Arthur Marsh , linux-mm@kvack.org References: <55D4A462.3070505@internode.on.net> Cc: linux-kernel@vger.kernel.org, Linus Torvalds From: Vlastimil Babka Message-ID: <55D58CEB.9070701@suse.cz> Date: Thu, 20 Aug 2015 10:16:43 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.1.0 MIME-Version: 1.0 In-Reply-To: <55D4A462.3070505@internode.on.net> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 3207 Lines: 79 On 08/19/2015 05:44 PM, Arthur Marsh wrote: > Hi, I've found that the Linus' git head kernel has had some unwelcome > behaviour where chromium browser would exhaust all swap space in the > course of a few hours. The behaviour appeared before the release of > 4.2.0-rc7. Do you have any more details about the memory/swap usage? Is it really that chromium process(es) itself eats more memory and starts swapping, or that something else (a graphics driver?) eats kernel memory, and chromium as one of the biggest processes is driven to swap by that? Can you provide e.g. top output with good/bad kernels? Also what does /proc/meminfo and /proc/zoneinfo look like when it's swapping? To see which processes use swap, you can try [1] : for file in /proc/*/status ; do awk '/VmSwap|Name/{printf $2 " " $3}END{ print ""}' $file; done | sort -k 2 -n -r | less Thanks [1] http://www.cyberciti.biz/faq/linux-which-process-is-using-swap/ > This does not happen with kernel 4.2.0-rc6. > > When I tried a git-bisect, the results where not conclusive due to the > problem taking over an hour to appear after booting, the closest I came > was around this commit (the actual problem may be a few commits either > side): > > git bisect good > 4f258a46346c03fa0bbb6199ffaf4e1f9f599660 is the first bad commit > commit 4f258a46346c03fa0bbb6199ffaf4e1f9f599660 > Author: Martin K. Petersen > Date: Tue Jun 23 12:13:59 2015 -0400 > > sd: Fix maximum I/O size for BLOCK_PC requests > > Commit bcdb247c6b6a ("sd: Limit transfer length") clamped the maximum > size of an I/O request to the MAXIMUM TRANSFER LENGTH field in the > BLOCK > LIMITS VPD. This had the unfortunate effect of also limiting the > maximum > size of non-filesystem requests sent to the device through sg/bsg. > > Avoid using blk_queue_max_hw_sectors() and set the max_sectors queue > limit directly. > > Also update the comment in blk_limits_max_hw_sectors() to clarify that > max_hw_sectors defines the limit for the I/O controller only. > > Signed-off-by: Martin K. Petersen > Reported-by: Brian King > Tested-by: Brian King > Cc: stable@vger.kernel.org # 3.17+ > Signed-off-by: James Bottomley > > :040000 040000 fbd0519d9ee0a8f92a7dab9a9c6d7b7868974fba > b4cf554c568813704993538008aed5b704624679 M block > :040000 040000 f2630c903cd36ede2619d173f9d1ea0d725ea111 > ff6b6f732afbf6f4b6b26a827c463de50f0e356c M drivers > > Has anyone seen a similar problem? > I can supply .config and other information if requested. > > Arthur. > > -- > To unsubscribe, send a message with 'unsubscribe linux-mm' in > the body to majordomo@kvack.org. For more info on Linux MM, > see: http://www.linux-mm.org/ . > Don't email: email@kvack.org > -- 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/