From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: passt.top; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: passt.top; dkim=pass (1024-bit key; unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=I/JMHkc1; dkim-atps=neutral Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by passt.top (Postfix) with ESMTPS id 6E7FA5A0271 for ; Fri, 24 Jan 2025 18:40:21 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1737740420; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=qiYtl14QZ7zAxHwkUe2JLFCtGQr8FTCdbM8LxS988CI=; b=I/JMHkc1SvGyBqOK+VdhWypF7qj3X24vWexpsR1sVOD3PNXIyLl6wkQIjHvIImG4Y0svTV 61KstUm1bsIrBNvmvm8IHMPvCMYZoazSDx2YFDUR6XvYCCxyp0+F3NIMxCem6X1Eo0aLmJ 3HP6Adh8EFQzwiGCz3mwnCQGKChrJYs= Received: from mail-qk1-f200.google.com (mail-qk1-f200.google.com [209.85.222.200]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-540-lQBsE1vBMPKsKpWlCM4GFg-1; Fri, 24 Jan 2025 12:40:19 -0500 X-MC-Unique: lQBsE1vBMPKsKpWlCM4GFg-1 X-Mimecast-MFC-AGG-ID: lQBsE1vBMPKsKpWlCM4GFg Received: by mail-qk1-f200.google.com with SMTP id af79cd13be357-7be8f0c72b8so377944785a.3 for ; Fri, 24 Jan 2025 09:40:18 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1737740418; x=1738345218; h=content-transfer-encoding:in-reply-to:content-language:references :cc:to:subject:from:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=qiYtl14QZ7zAxHwkUe2JLFCtGQr8FTCdbM8LxS988CI=; b=S89euIY/rvzC/EQoNOXHl7REk+GUcIg5e6YB1gC4pHEgJjcjw4orAXIQFZfet/ljGZ NDCqrre9F+miwJxi8HPGcUbIKhgNVtBYWjUu631+wHZlTN5mSYe9cgbBRm2UWlr5ZkSo O4hBYZ5oBsH+jgvJ917Q4fdYVPH5QrRInaamoppof38EMZU+ojyfwj1vUxnKYJLZu9+b zHiJWstMRnDoNifWi+QI4FWb9+VQDIF6G39R8dU76CoguQTEARIrcMWLXsa4BGMJBPIL v59PJIMLP9mTNbSnK3O4K77UGwV+94q7GQnogDnPOUDeB54EO/Ifz2ekOPj5eAH4/vCe XpVw== X-Forwarded-Encrypted: i=1; AJvYcCW65IT4HeGNFVHTtgxJUI4HOFAEfjLghWgtv10t8zP90iRVaqWh3Fer52iMbDtHAMQ9uWpenENv1Io=@passt.top X-Gm-Message-State: AOJu0YwEP3Pt7gw6D9r6hOw4V1HIOxNMldQwg9u0Li/tQdBR7Pv4zFoj aRTdKvaXKoTHvaRwy1Iw6sFp6uP/1K/xH/Yyz94QJmszkCryEnwtGvo6xTIOD0HUKe0b4+fY1lD IM2Cd7P22bpRiBUvQjkZv2oWvCMR4vxCafC9cE8GrRuB+cSzgtQ== X-Gm-Gg: ASbGncssDq8pUGdeDzS5g52+tU+2ev+Y8sdMlvLRoJ1uMFuu/f08XW0sJtCaO1QjIK7 k98ab2u41DNLkJzR/OGc/vfrXzldMV9sXXyznIbEOBHZ0rUA4x/ChJ9W2Jv7FXc50vzjpNprq3t vWSBMx60InDgTvUMbzdfcjxL+qJ7BIz1rM7dlNcc9hs6Fs3VMWLLKjdFxEg//stid3bkpZ+8Lz5 HaQYypN66AqLduvDqI+WR0xRL3Su5eEpqFLFrLWKRcRNVXTJ54FH1IjBLypLgcu1Ey+ X-Received: by 2002:a05:620a:408e:b0:7b6:eef3:aeaf with SMTP id af79cd13be357-7be6314c992mr4581223585a.0.1737740418531; Fri, 24 Jan 2025 09:40:18 -0800 (PST) X-Google-Smtp-Source: AGHT+IHxmVhPWR7fVNGigt+spyE8WWD83ve2cHRaJVuBSHFxWI070EZJPVN31nh9mZWqAudHBkvXzQ== X-Received: by 2002:a05:620a:408e:b0:7b6:eef3:aeaf with SMTP id af79cd13be357-7be6314c992mr4581220685a.0.1737740418235; Fri, 24 Jan 2025 09:40:18 -0800 (PST) Received: from [10.0.0.215] ([24.225.235.209]) by smtp.gmail.com with ESMTPSA id af79cd13be357-7be9af0d181sm113605385a.105.2025.01.24.09.40.17 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 24 Jan 2025 09:40:17 -0800 (PST) Message-ID: Date: Fri, 24 Jan 2025 12:40:16 -0500 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird From: Jon Maloy Subject: Re: [net,v2] tcp: correct handling of extreme memory squeeze To: Eric Dumazet References: <20250117214035.2414668-1-jmaloy@redhat.com> In-Reply-To: X-Mimecast-Spam-Score: 0 X-Mimecast-MFC-PROC-ID: f4c1ZKSeYFzKc9USDf_YtrMwXUBdup2hqdAHh6NbalU_1737740418 X-Mimecast-Originator: redhat.com Content-Language: en-US Content-Type: text/plain; charset="utf-8"; format="flowed" Content-Transfer-Encoding: base64 Message-ID-Hash: NSNJMXKUOEDV2KNVIOT5PHISRZGRAYRZ X-Message-ID-Hash: NSNJMXKUOEDV2KNVIOT5PHISRZGRAYRZ X-MailFrom: jmaloy@redhat.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header CC: Neal Cardwell , netdev@vger.kernel.org, davem@davemloft.net, kuba@kernel.org, passt-dev@passt.top, sbrivio@redhat.com, lvivier@redhat.com, dgibson@redhat.com, eric.dumazet@gmail.com, Menglong Dong X-Mailman-Version: 3.3.8 Precedence: list List-Id: Development discussion and patches for passt Archived-At: Archived-At: List-Archive: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: DQoNCk9uIDIwMjUtMDEtMjAgMTE6MjIsIEVyaWMgRHVtYXpldCB3cm90ZToNCj4gT24gTW9uLCBK YW4gMjAsIDIwMjUgYXQgNToxMOKAr1BNIEpvbiBNYWxveSA8am1hbG95QHJlZGhhdC5jb20+IHdy b3RlOg0KPj4NCj4+DQo+Pg0KPj4gT24gMjAyNS0wMS0yMCAwMDowMywgSm9uIE1hbG95IHdyb3Rl Og0KPj4+DQo+Pj4NCg0KWy4uLl0NCg0KPj4+PiBJIGFncmVlIHdpdGggRXJpYyB0aGF0IHByb2Jh Ymx5IHRwLT5wcmVkX2ZsYWdzIHNob3VsZCBiZSBjbGVhcmVkLCBhbmQNCj4+Pj4gYSBwYWNrZXRk cmlsbCB0ZXN0IGZvciB0aGlzIHdvdWxkIGJlIHN1cGVyLWhlbHBmdWwuDQo+Pj4NCj4+PiBJIG11 c3QgYWRtaXQgSSBoYXZlIG5ldmVyIHVzZWQgcGFja2V0ZHJpbGwsIGJ1dCBJIGNhbiBtYWtlIGFu IGVmZm9ydC4NCj4+DQo+PiBJIGhlYXIgZnJvbSBvdGhlciBzb3VyY2VzIHRoYXQgeW91IGNhbm5v dCBmb3JjZSBhIG1lbW9yeSBleGhhdXN0aW9uIHdpdGgNCj4+IHBhY2tldGRyaWxsIGFueXdheSwg c28gdGhpcyBzb3VuZHMgbGlrZSBhIHBvaW50bGVzcyBleGVyY2lzZS4NCj4gDQo+IFdlIGNlcnRh aW5seSBjYW4gYW5kIHNob3VsZCBhZGQgYSBmZWF0dXJlIGxpa2UgdGhhdCB0byBwYWNrZXRkcmls bC4NCj4gDQo+IERvY3VtZW50YXRpb24vZmF1bHQtaW5qZWN0aW9uLyBoYXMgc29tZSByZWxldmFu dCBpbmZvcm1hd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