Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.sourceforge.net (lists.sourceforge.net [216.105.38.7]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id AF92ACAC5B0 for ; Tue, 30 Sep 2025 02:37:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.sourceforge.net; s=beta; h=Content-Transfer-Encoding:Content-Type:Cc: Reply-To:From:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:Subject:MIME-Version:References:In-Reply-To: Message-ID:Date:To:Sender:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=M2Aw7EuaJsqEpXOGB7rit4hEjUToE3dy1RrJRyF0lqE=; b=B5ULiQ7a3GqPRmWli1vGpCHWCA oiLBMNLTYZx4PlmvgdiVbBy1BKa/JeHD/xYx9vZmXsBIv6RoI//AhL3ckDCSDVs7BrisOYzeQfGx1 acFg0ynuHj4o/EFSFBaJETHbQ8dpXQmPCZlLmwlUee90+2KPSPn00rqDQPnpDlP0ubBk=; Received: from [127.0.0.1] (helo=sfs-ml-1.v29.lw.sourceforge.com) by sfs-ml-1.v29.lw.sourceforge.com with esmtp (Exim 4.95) (envelope-from ) id 1v3QF4-0004la-7S; Tue, 30 Sep 2025 02:37:26 +0000 Received: from [172.30.29.66] (helo=mx.sourceforge.net) by sfs-ml-1.v29.lw.sourceforge.com with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.95) (envelope-from ) id 1v3QF2-0004l6-Sl for linux-f2fs-devel@lists.sourceforge.net; Tue, 30 Sep 2025 02:37:24 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sourceforge.net; s=x; h=Content-Transfer-Encoding:MIME-Version:References: In-Reply-To:Message-ID:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=fsj4UMF2nC8/PURWT6cwaqD+iW/Vhfe6PwR7/rdfo4k=; b=AqkpkUW+4TY0NUbME2hxstET7C 1BvjBshLI4RlV/NpTUZIR+8KtFRzdpR54EJZfJaP/ybyvoeMePe3VWYlHz00FTPbFhQ1WttEWL7Dx x4B5S/VxvUbkhHWd3zLKBv+VTF41yLoiLeQ7e9hMueioB4atoFWrN625HaEq3o/eSDks=; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sf.net; s=x ; h=Content-Transfer-Encoding:MIME-Version:References:In-Reply-To:Message-ID: Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=fsj4UMF2nC8/PURWT6cwaqD+iW/Vhfe6PwR7/rdfo4k=; b=W9YuucRFSZBBKrM5IKavmxfSU2 eU2eYW9vtUDPq/Rz1jsss0IOiDsHSNjyC1tYxKZKxf0WL+kwjbT8PZn9Da0VAgHAikKbQ2Yk3T0G5 5i3YcLp7sboGmg97n1kPaxpS5wsmgPt/UmBd5CxX0sS2IU9lad8JMH/Z50/B1AVhKVCo=; Received: from tor.source.kernel.org ([172.105.4.254]) by sfi-mx-2.v28.lw.sourceforge.com with esmtps (TLS1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.95) id 1v3QF2-0004TA-GV for linux-f2fs-devel@lists.sourceforge.net; Tue, 30 Sep 2025 02:37:24 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by tor.source.kernel.org (Postfix) with ESMTP id D596B60333 for ; Tue, 30 Sep 2025 02:37:13 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 76219C4CEF4; Tue, 30 Sep 2025 02:37:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1759199833; bh=wzIvNrQfhnaupa0QA6ax8A7ZbA07H2aTj6yXk1iowB8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=GVpk3hjYnX0S7uF+v4NsRGUWjIPd1s0sdEL1jQhBUKeNbK+w7MC8uhQ+uD1SyJPp8 +aHK0/908HO6Ym0MrQw0SB5IV51dtdxgLMrOYSwGJVMgBZd89i1Kzm3L+nmEfS86QO rPZ9GeYYlLrMh9GwJEONfNo7b2BUt8k41dYSqQ4GWldi/LU+SE6EwdzDZ407NbrByA +BIEQhOCHp0l5XYZFaeXpu6bCRO3cRmoK178vZbgL+HX0/CObf6eASUwh5AHZzC0mb GdqhRne03t1OEjYr9PqdOPOIjpcqghZHTvjrBUZDfvSJ9kDZq2SzGCyC5+IA+I/vSN /utgwcWq2WqqA== To: linux-f2fs-devel@lists.sourceforge.net Date: Tue, 30 Sep 2025 02:37:04 +0000 Message-ID: <20250930023704.3019074-5-jaegeuk@kernel.org> X-Mailer: git-send-email 2.51.0.618.g983fd99d29-goog In-Reply-To: <20250930023704.3019074-1-jaegeuk@kernel.org> References: <20250930023704.3019074-1-jaegeuk@kernel.org> MIME-Version: 1.0 X-Headers-End: 1v3QF2-0004TA-GV Subject: [f2fs-dev] [PATCH 5/5] f2fs_io: let's try to get contigous memory if possible X-BeenThere: linux-f2fs-devel@lists.sourceforge.net X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Jaegeuk Kim via Linux-f2fs-devel Reply-To: Jaegeuk Kim Cc: Jaegeuk Kim Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: linux-f2fs-devel-bounces@lists.sourceforge.net Signed-off-by: Jaegeuk Kim --- tools/f2fs_io/f2fs_io.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tools/f2fs_io/f2fs_io.c b/tools/f2fs_io/f2fs_io.c index 22f9968a35e9..d07e6c6b1bfe 100644 --- a/tools/f2fs_io/f2fs_io.c +++ b/tools/f2fs_io/f2fs_io.c @@ -101,6 +101,10 @@ static void *aligned_xalloc(size_t alignment, size_t size) if (!p) die("Memory alloc failed (requested %zu bytes)", size); + + if (madvise(p, size, MADV_HUGEPAGE)) + die("Madvise failed (requested %zu bytes)", size); + return p; } -- 2.51.0.618.g983fd99d29-goog _______________________________________________ Linux-f2fs-devel mailing list Linux-f2fs-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel