From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by sourceware.org (Postfix) with ESMTPS id 1B31A3858D1E for ; Wed, 31 Jan 2024 07:54:52 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 1B31A3858D1E Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=redhat.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 1B31A3858D1E Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=170.10.129.124 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1706687694; cv=none; b=r2g+vT3qEi63ZAN6OfODkoY8RwnIJt+3d3JA0AFhwEct0kydZlaKoQYb81kjFejHikDyFlOmxQ0AXhqSry/SEoXsJNPgFh2JP8nOnOTYVAYXFg6qhhjHqCiThHw2B+f5nPqGm9gMZY+Vs3DDbtFy+GvfPIPF+6EN4ZG/rMpJpQY= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1706687694; c=relaxed/simple; bh=QFW8ThkP7N2xy+o9eEAQS7jCUiabuIOXlU5L7HA5kh8=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=WXvR7+WuovmekEXdMqBrzEw6eJTgxAhdW+xcpzNmMOnyhlLaD8nC3R1aHF36+1qMtW7ORvxLXJX2hqbkvgidfaNH2UNy6V/VH3OBh46iHgwwhjZfh+AjKsJ5VDLjtdhq3UP8y9uS8k9s8JvfNDGadnQq/oR19XUVyoMbatdnJ9k= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1706687691; 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=HsMiUcuC++eIVWdfbtOLtGPVeA9TZf/rC+ZA4zwqpag=; b=Si8nBX4VDPjXsG6RtMzMuB8UZ9LS9J1yecZPA88NMCOwZ1aBvMFAQCCQsG3n09ZVN7r62x 1Y+TvqHW3q+b/V+TTCwLVce5ULzRnIhTtyyQxj6Db750i+ehAVJcFWsJO/PjHhsmGr5u2f F+IDfqNEQYfUz2+Nb4ktgk57hEizSFA= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-137-LpsPSIWeOWKZO9e2Kq2gKg-1; Wed, 31 Jan 2024 02:54:46 -0500 X-MC-Unique: LpsPSIWeOWKZO9e2Kq2gKg-1 Received: from smtp.corp.redhat.com (int-mx09.intmail.prod.int.rdu2.redhat.com [10.11.54.9]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id EC9CC84FA84; Wed, 31 Jan 2024 07:54:45 +0000 (UTC) Received: from oldenburg.str.redhat.com (unknown [10.39.192.109]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 9FF3E492BC6; Wed, 31 Jan 2024 07:54:44 +0000 (UTC) From: Florian Weimer To: Cristian =?utf-8?Q?Rodr=C3=ADguez?= Cc: Wilco Dijkstra , Adhemerval Zanella Netto , "libc-alpha@sourceware.org" , Cupertino Miranda Subject: Re: [PATCH] nptl: Disable THP on thread stack if it incurs in large RSS usage References: <20230420172436.2013698-1-adhemerval.zanella@linaro.org> <4115d7fd-d7a7-cdb1-3833-daf45186480f@linaro.org> <967b94b4-d819-278f-1782-6b758d0841b6@linaro.org> Date: Wed, 31 Jan 2024 08:54:40 +0100 In-Reply-To: ("Cristian =?utf-8?Q?Rodr=C3=ADguez=22's?= message of "Tue, 30 Jan 2024 23:03:44 -0300") Message-ID: <877cjqym2n.fsf@oldenburg.str.redhat.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.3 (gnu/linux) MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.9 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-5.2 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_NONE,TXREP,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: * Cristian Rodr=C3=ADguez: > On Tue, May 23, 2023 at 5:48=E2=80=AFAM Wilco Dijkstra via Libc-alpha > wrote: > >> However even switching off THP for all small stacks (eg. default size or= smaller) >> would avoid the random use of THP without needing to set the tunable. >> >> Cheers, >> Wilco > > =20 > Didn't found the exact message to reply.. but this one is close enough. M= AP_STACK implies no > transparent hugepages since linux kernel commit=20 > https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit= /?id=3Dc4608d1bf7c6536d1a3d233eb21e50678681564e It's an odd choice for fixing the regression. I commented on the linux-mm thread. It's also surprising to see such changes being made without larger discussion. Thanks, Florian