From owner-freebsd-hackers@freebsd.org Wed Oct 24 20:25:53 2018 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 1999A1039FB4 for ; Wed, 24 Oct 2018 20:25:53 +0000 (UTC) (envelope-from robert.ayrapetyan@gmail.com) Received: from mail-pl1-x635.google.com (mail-pl1-x635.google.com [IPv6:2607:f8b0:4864:20::635]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 6DF82786F3; Wed, 24 Oct 2018 20:25:52 +0000 (UTC) (envelope-from robert.ayrapetyan@gmail.com) Received: by mail-pl1-x635.google.com with SMTP id f8-v6so2760319plb.2; Wed, 24 Oct 2018 13:25:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding:content-language; bh=2ioXT9HRsGNXtsENWwjo43ApPJycNSYt1bLCQejCzOI=; b=ukima37bxZoob0xOLLVWoxNrCFNOZCcuQC9lJfQFz6RMRfUhQbFom1GxdrNhtd+ZvH t98GRtnT2Qzwdb79vffcPa5zHMpcFNBKdZq7Cs9vazcwTtDgGbXaWCdkSEcAYeFSgaZf EtpqQu6rmww4FNCUbUGPoRArMOLHry64ND3TGAEaQP7d6hiEGQkpTW0GPxpwWW/zR2R/ ITom+mg2pWHI7gW2ZVdppPpu5KzX1K3EeUZ7Xq8ZEidZjZ0b97EZEaJy/ZNUN1GoksWz ps0TvdgPktoyXxF0ENYqzqeHrE+utQJHF5HdZQqbNF57wqvSRoPbSEaLStg2VW+Jr3Oh c4aQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=2ioXT9HRsGNXtsENWwjo43ApPJycNSYt1bLCQejCzOI=; b=rPG5I9N47V7MvGli90CQOQ30DvwgsO2qqBgnmnbB+AOch4Bk9Z3VZKWIq3opvWaaK1 E2ZRJDiGMCceJgYbAE0NIRIKuuookZAgwAjEoNpwu5TvV+pgQSgCduTO3FpcasJXVqpB q4NGFJMS/aPJlEJY6KA07Q2vJf0zJ+9QFCcUtWMaACySsGKtkhlPmSD0i8GrIaXXBbJv 01HeP7XQcXvMHdf/3WrX416PykR400hy0iw3Y8UbcDM+Po/G5nu/8U2oobZWUIXXx+uf WCU92XJMnFs+dGEqf1+jPfV9QAqXNoy7YBdqPxC5MCJD2W9nqxhvKlC089oOPBClHIeE XCRg== X-Gm-Message-State: AGRZ1gIflpm+Q6ZvIyH6SSqpfo0vXISoWJVAE4cIpQfVrXM9Vqw0e2NX nKBRDJMuLzMlYMWnSakJyJpGa/4= X-Google-Smtp-Source: AJdET5fML7MlI5j7zDxByqNYx2reUWQFGoCJOqCDZzuPqlT3BWqjS2OTTcLN//0vi3XVElD13NeWbw== X-Received: by 2002:a17:902:ab8a:: with SMTP id f10-v6mr3849466plr.203.1540412750873; Wed, 24 Oct 2018 13:25:50 -0700 (PDT) Received: from [192.168.1.113] (c-73-202-42-181.hsd1.ca.comcast.net. [73.202.42.181]) by smtp.gmail.com with ESMTPSA id q127-v6sm20477183pgq.19.2018.10.24.13.25.49 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 24 Oct 2018 13:25:49 -0700 (PDT) Subject: Re: Sudden grow of memory in "Laundry" state To: Mark Millard , Rozhuk Ivan Cc: FreeBSD , Mark Johnston References: <55b0dd7d-19a3-b566-0602-762b783e8ff3@gmail.com> <20180911005411.GF2849@raichu> <20180911150849.GD92634@raichu> <104be96a-c16b-7e7c-7d0d-00338ab5a106@gmail.com> <20180928152550.GA3609@raichu> <20181024211237.302b72d9@gmail.com> <981C887D-78EB-46D2-AEE5-877E269AF066@yahoo.com> From: Robert Message-ID: Date: Wed, 24 Oct 2018 13:25:48 -0700 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:60.0) Gecko/20100101 Thunderbird/60.2.1 MIME-Version: 1.0 In-Reply-To: <981C887D-78EB-46D2-AEE5-877E269AF066@yahoo.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 24 Oct 2018 20:25:53 -0000 Sorry, that wasn't my output, mine (related to the screenshot I've sent earlier) is: Mem: 1701M Active, 20G Inact, 6225M Laundry, 2625M Wired, 280M Free ARC: 116M Total, 6907K MFU, 53M MRU, 544K Anon, 711K Header, 55M Other      6207K Compressed, 54M Uncompressed, 8.96:1 Ratio Swap: 32G Total, 15G Used, 17G Free, 46% Inuse I'm OK with a low "Free" memory if OS can effectively allocate from "Inactive", but I'm worrying about a sudden move of a huge piece of memory into "Swap" without any relevant mmap calls. My question is: what else (except mmap) may reduce "Free" memory and increase "Laundry"\"Swap" in the system? Thanks. On 10/24/18 9:34 AM, Mark Millard wrote: > On 2018-Oct-24, at 11:12 AM, Rozhuk Ivan wrote: > >> On Wed, 24 Oct 2018 10:19:20 -0700 >> Robert wrote: >> >>> So the issue is still happening. Please check attached screenshot. >>> The green area is "inactive + cached + free". >>> >>> . . . >> +1 >> Mem: 845M Active, 19G Inact, 4322M Laundry, 6996M Wired, 1569M Buf, 617M Free >> Swap: 112G Total, 19M Used, 112G Free > Just a limited point based on my understanding of "Buf" in > top's display . . . > > If "cached" means "Buf" in top's output, my understanding of Buf > is that it is not a distinct memory area. Instead it totals the > buffer space that is spread across multiple states: Active, > Inactive, Laundry, and possibly Wired(?). > > In other words: TotalMemory = Active+Inact+Laundry+Wired+Free. > If Buf is added to that then there is double counting of > everything included in Buf and the total will be larger > than the TotalMemory. > > Also Inact+Buf+Free may double count some of the Inact space, > the space that happens to be inactive buffer space. > > I may be wrong, but that is my understanding. > > > === > Mark Millard > marklmi at yahoo.com > ( dsl-only.net went > away in early 2018-Mar) >