From nobody Mon Jul 10 23:01:03 2023 X-Original-To: freebsd-current@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4R0KHh0ht6zZVXf for ; Mon, 10 Jul 2023 23:01:20 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic303-25.consmr.mail.gq1.yahoo.com (sonic303-25.consmr.mail.gq1.yahoo.com [98.137.64.206]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4R0KHf5grPz3rCw for ; Mon, 10 Jul 2023 23:01:18 +0000 (UTC) (envelope-from marklmi@yahoo.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=yahoo.com header.s=s2048 header.b="dT/pjWWm"; spf=pass (mx1.freebsd.org: domain of marklmi@yahoo.com designates 98.137.64.206 as permitted sender) smtp.mailfrom=marklmi@yahoo.com; dmarc=pass (policy=reject) header.from=yahoo.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1689030077; bh=Z02h1JY6gxfXlAXupoX+T0BQlHo/3QHkZ/pcy5ZkR1U=; h=From:Subject:Date:Cc:To:References:From:Subject:Reply-To; b=dT/pjWWmtRnrVkasGeyrqCJKo3trKYu8PIui9lNzUHUIF3e6K2UA2mk2SHoiVfulshrGCAdKlAt0KxLcDIGtZ59m0of/KjShZVM5hJq3yBI4eBgtG8Ei+zYQU+mINRSq5PGiT2eoBQ9w6BC7GrMJv72AwMeV71mXDLG+1fcufqRv0l2ElrbEOfj7iaiqvra48MZ9rNLNkQI/fpkBVRZjt+U3J654b/JeGqItrtdyzMJTg+Vt+ldlKzld49rU4QYVZjB9bGiMBGU17WXC1Z97aXWcByryvonf4ognTZWdyq2G5sLw0iRSOR6AZmEQ2tKPA6luZPSTliB5IQldmagFJA== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1689030077; bh=z0KGT3EzjX5DwsF4WclU1mZGNmFUzVRJmd6nzTD2VTC=; h=X-Sonic-MF:From:Subject:Date:To:From:Subject; b=tppJvflhafOVqJrCg3KG9hhJY7vCXrQ93/xM0Xdgbi37iGtH5DJt95bN1Bmv6YhWF8TrO6Lbq+G63eWOqVtnS7tMCfVjGJvGHsUZsr/CjgNr71Im/9shn2yf8g2wFrJt7+9xfhME25YY4f25Pqo9K/kJ5M1wDDpZ88Q0PD+KzN1M6ZUKB7nurCxFeuwFjWsAzWAuVlga/HN12iOblmPl88IQ+IoK942w3hUPpTtmJIE5hhxTUHDxvDn/crFBgYWWt+USR5xzyrbNOVEMXEIaq+6yoWJ9RP3LMg40SNnFNLbJZUoPbdr7aRg+WPGwW4jSvY/krpsZ0nT5yaeXc113Gw== X-YMail-OSG: V9P8z6MVM1lvHWyTOfEAqChX6ayePP8X.PgWPCUQGjclo9fYlAvwK_.wKh2MmKm OdroGAGH_hlZAv8Y15pzlxka3URFXDEoS.AjPKyUK7uRVh0j4mZVW00w_8LDfL5x9IJqMk9a6p3s 5pIZzy_4_C7Naz6FqntiaKXcnNzA3gJ8wM3EVwY.jSxYEoGBhk6G_LKpM6h7Lbao0jnGy.q6UJEI TwD5DgitKA08mLp.A71d30IJDPPBFobldWqCMei1wSspW_5v5DlVcDnp_uHK0iAMkjPItPsi9Lwf T5G2YfeO5x_IH7GqRBpCaUKg7Y68dnfwUTJlQQ3szPWRExhrKCqqmOv9XZnYa4t5maRw9Q6ZcBnW cCd7ZlsFGCpZk6tSEW0Y8FQeOY8Cxj1H00EqZUuGN2s44uI50hAUThXR7rbFBdkLl57B8tO1xrTX px9sM5KvLx5R5cwjD08MgwnBabU9EuZANv5HZdSmIs0JBbz0kgw8vFek_njjTxQMUZioybIuXu1c DjnLrvKwBcXvLyuFNnr8nR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MjQRgGKWyGkMctQm7l4uH5.jV.EoFWuUhqQolIaIqIfZ OCVXYI69itLAub554JsSySHWJqfKpEugppe1kkVteEqWKR6y7TFPMDSfH1WHgDLIxoMJUFif14Dr rNdYm6_BeZ69GCCaYOs7QO_XgiTwL56g_31kXjBiS6JNHOiAuWeEbgoomhVQB7.TOKORWzt8f4EC w4SefUx8R1WhXOcImV605XFtXtPDQX7D8OuLXGDKFGxH2FseW4Kcg14f8HTvSTnNXtFDMaPiIAOE MvlumHfRDNsWWqk_qO7vnzS9raHYa5GKvGGEC5jl3MYS2efPVtm.aFrMCzNZz4TDIcLXdbtnuPAi crZtfdpccmCunc1dYoyFljMonmjRsSdd7ccEwhO4B5RH9g8VqkwLiGtZeXbmwHVWbpwQMgodUt3r dyoPgg8OGGyUF9cXjupWfeakIPgkON57KH6WV8eln6PVC5LNLfXyuFkBRh1vqSG4vDpWXn7k.WzP 1PCDlT8OTiriwZNU.bsV2Bb63jpJ84g9jwD3nhsXWdcqMSJTV2k.YsA225r_KCOTdMhXDQPVqwv1 j72.iemG4SPvEOoUzm604430UDjWUJ.BPee8AEcvRomQEXJASCinq_5Gy2IXVRA10h5Rzcc_ftRE UmS1DlybxKxhYUB6ACmI.YPNS6GY9v8CispTCKWrXsd4qArkEwi76LIDOqOs0qpzmEhzHTNPA.De jAMWSDA-- X-Sonic-MF: X-Sonic-ID: da56a286-613a-40e4-a3e6-a7482f1a09d5 Received: from sonic.gate.mail.ne1.yahoo.com by sonic303.consmr.mail.gq1.yahoo.com with HTTP; Mon, 10 Jul 2023 23:01:17 +0000 Received: by hermes--production-ne1-6d679867d5-hsp8p (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID 952ab2f53fdf7aa3b1700828220fcd47; Mon, 10 Jul 2023 23:01:14 +0000 (UTC) From: Mark Millard Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit List-Id: Discussions about the use of FreeBSD-current List-Archive: https://lists.freebsd.org/archives/freebsd-current List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-current@freebsd.org Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3731.600.7\)) Subject: RE: huge amount laundry memory not being cleaned up Message-Id: Date: Mon, 10 Jul 2023 16:01:03 -0700 Cc: Current FreeBSD To: Pete Wright X-Mailer: Apple Mail (2.3731.600.7) References: X-Spamd-Result: default: False [-2.82 / 15.00]; NEURAL_HAM_LONG(-0.99)[-0.994]; NEURAL_HAM_MEDIUM(-0.99)[-0.993]; MV_CASE(0.50)[]; DMARC_POLICY_ALLOW(-0.50)[yahoo.com,reject]; NEURAL_HAM_SHORT(-0.33)[-0.331]; R_DKIM_ALLOW(-0.20)[yahoo.com:s=s2048]; R_SPF_ALLOW(-0.20)[+ptr:yahoo.com]; MIME_GOOD(-0.10)[text/plain]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DWL_DNSWL_NONE(0.00)[yahoo.com:dkim]; RCVD_IN_DNSWL_NONE(0.00)[98.137.64.206:from]; MID_RHS_MATCH_FROM(0.00)[]; ASN(0.00)[asn:36647, ipnet:98.137.64.0/20, country:US]; MLMMJ_DEST(0.00)[freebsd-current@freebsd.org]; TO_DN_ALL(0.00)[]; RCVD_COUNT_THREE(0.00)[3]; FREEMAIL_FROM(0.00)[yahoo.com]; RCVD_TLS_LAST(0.00)[]; DKIM_TRACE(0.00)[yahoo.com:+]; FROM_EQ_ENVFROM(0.00)[]; RCPT_COUNT_TWO(0.00)[2]; FREEMAIL_ENVFROM(0.00)[yahoo.com]; MIME_TRACE(0.00)[0:+]; RWL_MAILSPIKE_POSSIBLE(0.00)[98.137.64.206:from] X-Rspamd-Queue-Id: 4R0KHf5grPz3rCw X-Spamd-Bar: -- X-ThisMailContainsUnwantedMimeParts: N Pete Wright wrote on Date: Mon, 10 Jul 2023 19:35:26 UTC : > hi there, > i've got a workstation running CURRENT that recently ran out of swap > space. i killed the usual suspects (chrome, firefox and thunderbird) > and noticed some odd behavior. while some memory did get freed up - > after leaving the system idle for 4 hours i still have 14G or memory in > the Laundry according to top. I also have noticed that very little data > has paged out of swap (100MB out of 2G). > > > i was wondering if there was a good way to determine what is in the > laundry, I do not know how to get a breakdown of the laundry's usage. But I'd expect, say, for example, top's resident memory figures would count what is in the laundry as resident. If correct, given the large laundry usage, may be some resident figures would be suggestive? > or get diagnostic info on why it's not cleaning itself up? As I understand, it would take take one of the following to change the status of the pages in the laundry in normal operation: A) access to a page by a program, turning the page into being in the active category. (It might go through inactive to get there?) B) memory pressure leading to sending the page to the swap in order to provide a page for a different use. Time alone does not contribute much as I understand. More on-demand driven. Laundry is sort of "inactive but known to be dirty" as I understand, in some respects just a subset of inactive optimized for being closer to ready to page out to swap space if needed. > when i've seen this before only a reboot will get the system back to > being stable, if i re-launch my desktop apps they'll quickly start > trying to page out to disk again creating an OOM condition. > > system has 32G of RAM and is running this checkout > FreeBSD topanga 14.0-CURRENT FreeBSD 14.0-CURRENT #66 > main-n263884-d2a45e9e817a: Thu Jun 29 15:50:44 PDT 2023 === Mark Millard marklmi at yahoo.com