From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-vs1-xe33.google.com (mail-vs1-xe33.google.com [IPv6:2607:f8b0:4864:20::e33]) by sourceware.org (Postfix) with ESMTPS id 6E8713858402 for ; Wed, 31 Jan 2024 02:03:56 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 6E8713858402 Authentication-Results: sourceware.org; dmarc=fail (p=none dis=none) header.from=rodriguez.im Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=cristianrodriguez.net ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 6E8713858402 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2607:f8b0:4864:20::e33 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1706666638; cv=none; b=Mp+GSjIZxUswwAX3xjXAp5opKUB0YkcrrtQiZhzkYnZ5EmyUsYNZKAgWbA9z9lICppzIHquDrlD4e8oZIYETwYDNHhU0wG6bNnfJp3dbz1bnno1QUZCPcPZ4Mz3sy8kPdneGnoePaGLzqInBhF7+GUsez0lJSCnzQYS4bGj0330= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1706666638; c=relaxed/simple; bh=tvr3Z/VL3ByZfJgJg3xXJkxJ+phE9qyq+9roZ4JrG0A=; h=DKIM-Signature:MIME-Version:From:Date:Message-ID:Subject:To; b=nl6rQWngtLFLcbcqFw2R4yYjEdGblFMnYjWGWuy/kt3eHYnldOR05xfLOSkIO3zVEFvpw0w+NEf44/IzrLPgQk4V5kCuY6M9yGkQu5rgZKG/Sybjd0eDVEm4MIOnDdMO7TYMmyh54RPr28+uJB/EpvIHAZxQrsYfQZKgMnr3zDg= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-vs1-xe33.google.com with SMTP id ada2fe7eead31-46b19190d6bso282974137.0 for ; Tue, 30 Jan 2024 18:03:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rodriguez.im; s=google; t=1706666636; x=1707271436; darn=sourceware.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=tvr3Z/VL3ByZfJgJg3xXJkxJ+phE9qyq+9roZ4JrG0A=; b=D5U7ZVXGWopVGJZjcCo13QHi9RjIfTMfoVHvvEPUWzsg9o87bPuQlDxDhGvdK4rO8h Nbp9DDhY/pnfgZasfxOC74wateehqjmHFh+NWMjr5n55GBpfN6RecgDfe5boWjzjddBL unMJLPhqxb8h6pp6BaZRNtD9LXan41oLFf29Y= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706666636; x=1707271436; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=tvr3Z/VL3ByZfJgJg3xXJkxJ+phE9qyq+9roZ4JrG0A=; b=JGLt7/jMpTmMIPUFsN41p2FhsDBiBzyT/nqTV+lEgkTkX6wUDQueULMo+0Ng4zdv0M EaeTKJ9gZbJ98BY1Fx1g701JdmwgBGro4xceKBSJSLc21/f6kkxP6m3LkLxRAY4boT3d o/4J9hD+Uk7otg86g7GjEnDQmQLNeF4myNQ/QBR8t2QR061tyTbGGkOPisZ/JgwuxZlS TCCFCXFSFDS7NAywEKfzidmuWCjas09f4amGnUUy/aiQFtqnL0qZx9TGhtLMcWkYBvlS CC2L+rfCbejD//Qvjq0+fFxz2fZxgD5D1XgCPYhBvzbPdEg2hK038gN2LN76nNvCMFP6 cFVg== X-Forwarded-Encrypted: i=0; AJvYcCVE9DoUrLK3smvQ8xzypk05OFbTVCDFklc/0dl09St9LW2l4YzdavwTAKEpOyk7ACZuhVONP2m8GR/EiG7zjHhWZE/LXC21eQ06 X-Gm-Message-State: AOJu0YwWaWS1YBQgNz3ppipEeisBNXOsQcbvOQpnC8gghVQqGHY7MANL f3D4VnQ+77Gmgqoh0By36FFEVXQRsjPgEPEfB1uKgOlpI/Z13r5tQ5s7ULK/gVMqag4ZPsbBa8M DVZeVBw8ajYQK4PASVUb2J/xFyN8sL/dmxB2k X-Google-Smtp-Source: AGHT+IHxjkb+gih2xvDY3vK6f82Q84AZ8dwGYx1/2+Eht3+tMsioli17w59buV4g0wP8XUKvFVdvD385+gWOTSFwo6s= X-Received: by 2002:a05:6102:3971:b0:46b:246:1a6a with SMTP id ho17-20020a056102397100b0046b02461a6amr156917vsb.3.1706666635690; Tue, 30 Jan 2024 18:03:55 -0800 (PST) MIME-Version: 1.0 References: <20230420172436.2013698-1-adhemerval.zanella@linaro.org> <4115d7fd-d7a7-cdb1-3833-daf45186480f@linaro.org> <967b94b4-d819-278f-1782-6b758d0841b6@linaro.org> In-Reply-To: From: =?UTF-8?Q?Cristian_Rodr=C3=ADguez?= Date: Tue, 30 Jan 2024 23:03:44 -0300 Message-ID: Subject: Re: [PATCH] nptl: Disable THP on thread stack if it incurs in large RSS usage To: Wilco Dijkstra Cc: Adhemerval Zanella Netto , "libc-alpha@sourceware.org" , Cupertino Miranda Content-Type: multipart/alternative; boundary="00000000000092399c0610344ae4" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,TXREP,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: --00000000000092399c0610344ae4 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Tue, May 23, 2023 at 5:48=E2=80=AFAM Wilco Dijkstra via Libc-alpha < libc-alpha@sourceware.org> 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 Didn't found the exact message to reply.. but this one is close enough. MAP_STACK implies no transparent hugepages since linux kernel commit https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?= id=3Dc4608d1bf7c6536d1a3d233eb21e50678681564e --00000000000092399c0610344ae4--