From nobody Fri Apr 05 16:00:34 2024 X-Original-To: freebsd-questions@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 4VB39j3M0nz5Gk44 for ; Fri, 5 Apr 2024 16:00:41 +0000 (UTC) (envelope-from cryintothebluesky@gmail.com) Received: from mail-lj1-x233.google.com (mail-lj1-x233.google.com [IPv6:2a00:1450:4864:20::233]) (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-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4VB39h3Kqtz4S94 for ; Fri, 5 Apr 2024 16:00:40 +0000 (UTC) (envelope-from cryintothebluesky@gmail.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20230601 header.b=B3bTzOhn; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of cryintothebluesky@gmail.com designates 2a00:1450:4864:20::233 as permitted sender) smtp.mailfrom=cryintothebluesky@gmail.com Received: by mail-lj1-x233.google.com with SMTP id 38308e7fff4ca-2d68cf90ec4so27776131fa.1 for ; Fri, 05 Apr 2024 09:00:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1712332836; x=1712937636; darn=freebsd.org; h=content-transfer-encoding:mime-version:message-id:subject:to:from :date:from:to:cc:subject:date:message-id:reply-to; bh=/59mN+Ocv6NHknybt18Mx/bkNKQjzqgPI76DXhDQmy4=; b=B3bTzOhnRgG2ScDOA+R2eDOVxlDI9iOsgfY4S5yh8BU4pO7fUYTAV7ABjS96BYyNxY 7kHfJxFYqO0ugSG/dhbcNx7dGGzGOsoJvg2MAicYSna7NAk3fVDvxKOe9cojTbdnGBs5 3D4ZHfPoKkj07Ycc/85KPyapIOqi6TaWJwfA22EwFXL70WUfXs72jOv8+5CAPzA13KFk Tv9+8xnG2tPbfDNDkSiSVTZgFbTdisL32v8+0Jagca8re+Hcns+b7wTaxuH45zwRsDfe RrmYLSIniAPNKj4u+wUIJkeThY19hes6u2HBXfhbNudlTXR35h6+8UamqgMz+UiDSWiH cAXg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712332836; x=1712937636; h=content-transfer-encoding:mime-version:message-id:subject:to:from :date:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=/59mN+Ocv6NHknybt18Mx/bkNKQjzqgPI76DXhDQmy4=; b=ETvgVCCclQUU7YAPI8XLgoNuuucMI0Mtvyd1ddje2K2L2zKDWYabsBJNTwGhKDbDSX O3rttDD9L+RrLCSzmcosslVGY4Y+JQcFnHJx4ZAGZ6ffW7xZGHAEwRr5/7+VQJr+Gxfw h+0hUzRA5gyDR3e6bTj3kkzowI0+bivIrajHPPnwF7zkukZNx1XCjiZaGyEypG/Q5ukn 1OPUBeo2qVu1CfLcY8hBOMRbbCCLfCaUcjkH9xKLXbOqFvbqKr970LM9DXrpRg3ULfJB KfNuP1coW/DkdKmVwVQryzF5EYfbSITMpB7UNw4LfbHr0UchO4SZp0Af4Tuodeil2EVb SF4g== X-Gm-Message-State: AOJu0Yy/BOYjwZkwqfFTecV/D06KyTc65CQrvpqPgLQUef20ibmhZEkE TbTXjnZJnm/4bSDouZl6vEGc7dfaKtaRbgtFalERde45mADfSzNZTcQHWvmW X-Google-Smtp-Source: AGHT+IHBC09OjP3z8cBo58CpJNQZrA9BQp0mPVW/G5z6KIqr0s6Iiovrjzk99d/beFhw5NmYu47tzQ== X-Received: by 2002:a2e:980f:0:b0:2d8:1267:320e with SMTP id a15-20020a2e980f000000b002d81267320emr1436374ljj.5.1712332835908; Fri, 05 Apr 2024 09:00:35 -0700 (PDT) Received: from z600.home.lan (211.85.199.146.dyn.plus.net. [146.199.85.211]) by smtp.gmail.com with ESMTPSA id o20-20020a05600c4fd400b004162d62397dsm3716687wmq.9.2024.04.05.09.00.35 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 Apr 2024 09:00:35 -0700 (PDT) Date: Fri, 5 Apr 2024 17:00:34 +0100 From: Sad Clouds To: freebsd-questions@FreeBSD.org Subject: Page fault performance Message-Id: <20240405170034.17eee6f5dbe96261f3157396@gmail.com> X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.32; x86_64-pc-linux-gnu) List-Id: User questions List-Archive: https://lists.freebsd.org/archives/freebsd-questions List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spamd-Bar: --- X-Spamd-Result: default: False [-3.50 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-0.999]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; MV_CASE(0.50)[]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20230601]; MIME_GOOD(-0.10)[text/plain]; RCVD_TLS_LAST(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ARC_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; FREEMAIL_FROM(0.00)[gmail.com]; FROM_HAS_DN(0.00)[]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; TO_DN_NONE(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; FROM_EQ_ENVFROM(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; PREVIOUSLY_DELIVERED(0.00)[freebsd-questions@freebsd.org]; MID_RHS_MATCH_FROM(0.00)[]; MLMMJ_DEST(0.00)[freebsd-questions@freebsd.org]; RCVD_VIA_SMTP_AUTH(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[2a00:1450:4864:20::233:from] X-Rspamd-Queue-Id: 4VB39h3Kqtz4S94 Hello, I was testing FreeBSD-13.2 page faulting performance on AMD64, where a thread allocates a large segment of anonymous memory via mmap(2) and then modifies every 4KiB page there. Transparent large pages were deliberately disabled via vm.pmap.pg_ps_enabled flag. I only want to test the base 4KiB page fault performance. There is good scalability up to 4 concurrent threads, but after that performance follows a somewhat flat line. Any idea if there is some runtime setting to improve concurrency and decrease lock contention in the virtual memory subsystem? Thanks.