Date: Fri, 13 May 2022 13:43:11 -0700 From: Pete Wright <pete@nomadlogic.org> To: freebsd-current@freebsd.org Subject: Re: Chasing OOM Issues - good sysctl metrics to use? Message-ID: <ab7ad096-109a-b14a-ea2f-bccbaf78c253@nomadlogic.org> In-Reply-To: <0E44A609-A040-4801-B3FA-E0B410F0C3D3@yahoo.com> References: <83A713B9-A973-4C97-ACD6-830DF6A50B76.ref@yahoo.com> <83A713B9-A973-4C97-ACD6-830DF6A50B76@yahoo.com> <a5b2e248-3298-80e3-4bb6-742c8431f064@nomadlogic.org> <94B2E2FD-2371-4FEA-8E01-F37103F63CC0@yahoo.com> <0fcb5a4a-5517-e57b-2b69-4f3b3b10589a@nomadlogic.org> <DD98C932-A07F-4097-AE7F-D9CEF0BB6AEE@yahoo.com> <f43d7276-3718-df89-cbf0-5c1ef3d67e77@nomadlogic.org> <f00ccd1f-b6f6-bb00-f0a7-2f760c8953a0@nomadlogic.org> <464ED220-0DE4-4D2F-9DA2-AFD00D8D42B7@yahoo.com> <446d5913-a8c2-7dd0-860b-792fa9fe7c5b@nomadlogic.org> <33B740AA-A431-49CB-9F27-50B8C49734A2@yahoo.com> <3C5C183F-1471-4139-A53C-0B3815CFC25E@yahoo.com> <75C02C8C-6A5E-4E19-AC7D-B5DB704E8F16@transactionware.com> <C992DE63-AE7B-47F7-B679-B76D480AC0B1@yahoo.com> <D429A8ED-011A-4E67-9726-C49937861CCD@yahoo.com> <A3D29E7A-62C1-492F-9631-06437C17B264@yahoo.com> <0E44A609-A040-4801-B3FA-E0B410F0C3D3@yahoo.com>
next in thread | previous in thread | raw e-mail | index | archive | help
This is a multi-part message in MIME format. --------------y3V06LKg9WtVz16sasyhpvp0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit On 5/11/22 12:52, Mark Millard wrote: > > > Relative to avoiding hang-ups, so far it seems that > use of vm.swap_enabled=0 with vm.swap_idle_enabled=0 > makes hang-ups less likely/less frequent/harder to > produce examples of. But is no guarantee of lack of > a hang-up. Its does change the cause of the hang-up > (in that it avoids processes with kernel stacks swapped > out being involved). thanks for the above analysis Mark. i am going to test these settings out now as i'm still seeing the lockup. this most recent hang-up was using a patch tijl@ asked me to test (attached to this email), and the default setting of vm.pageout_oom_seq: 12. interestingly enough with the patch applied i observed a smaller amount of memory used for laundry as well as less swap space used until right before the crash. cheers, -p -- Pete Wright pete@nomadlogic.org @nomadlogicLA --------------y3V06LKg9WtVz16sasyhpvp0 Content-Type: text/x-patch; charset=UTF-8; name="vm_pageout_worker.patch" Content-Disposition: attachment; filename="vm_pageout_worker.patch" Content-Transfer-Encoding: base64 RnJvbSBmMzI2MGEyZWIxY2RjODZmOTIxNmI3OTIzZDdiMDk3MDRhMzdlNzlkIE1vbiBTZXAg MTcgMDA6MDA6MDAgMjAwMQpGcm9tOiBUaWpsIENvb3NlbWFucyA8dGlqbEBGcmVlQlNELm9y Zz4KRGF0ZTogU3VuLCA4IE1heSAyMDIyIDEyOjE5OjI4ICswMjAwClN1YmplY3Q6IFtQQVRD SF0gdm06IHN0b3AgYmFja2dyb3VuZCBsYXVuZGVyaW5nIHdoZW4gbm8gcHJvZ3Jlc3MKCkxl dCB2bV9wYWdlb3V0X2xhdW5kcnlfd29ya2VyIGdvIHRvIHNsZWVwIHdoZW4gaXQgY2Fubm90 IG1ha2UKcHJvZ3Jlc3MgKG5mcmVlZCA9PSAwKS4gIFRoaXMgYWxsb3dzIG90aGVyIHRocmVh ZHMgdG8gcnVuIHNvIHRoZXkKY2FuIGhvcGVmdWxseSBmcmVlIHNvbWUgbWVtb3J5LgoKVGhp cyByZXN0b3JlcyBiZWhhdmlvdXIgZnJvbSBiZWZvcmUgYzA5ODc2OGU0ZGFkIGFuZCA2MDY4 NDg2MjU4OGYKYW5kIHByZXZlbnRzIHNvbWUgT09NIGtpbGxzLgoKVGVzdGVkIGJ5OglQZXRl IFdyaWdodCA8cGV0ZUBub21hZGxvZ2ljLm9yZz4KTUZDIGFmdGVyOgkyIHdlZW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F9wYWdlcXVldWVzW1BRX0lOQUNUSVZFXS5wcV9jbnQ7 CiAJCW5kaXJ0eSA9IHZtZC0+dm1kX3BhZ2VxdWV1ZXNbUFFfTEFVTkRSWV0ucHFfY250Owot CQlpZiAodGFyZ2V0ID09IDAgJiYgbmRpcnR5ICogaXNxcnQoaG93bWFueShuZnJlZWQgKyAx LAorCQlpZiAodGFyZ2V0ID09IDAgJiYgbmRpcnR5ICogaXNxcnQoaG93bWFueShuZnJlZWQs CiAJCSAgICB2bWQtPnZtZF9mcmVlX3RhcmdldCAtIHZtZC0+dm1kX2ZyZWVfbWluKSkgPj0g bmNsZWFuKSB7CiAJCQl0YXJnZXQgPSB2bWQtPnZtZF9iYWNrZ3JvdW5kX2xhdW5kZXJfdGFy Z2V0OwogCQl9Ci0tIAoyLjM1LjEKCg== --------------y3V06LKg9WtVz16sasyhpvp0--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?ab7ad096-109a-b14a-ea2f-bccbaf78c253>