From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-0.8 required=3.0 tests=DKIM_INVALID,DKIM_SIGNED, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 36894C433DF for ; Fri, 10 Jul 2020 04:25:27 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id E7E3B2065F; Fri, 10 Jul 2020 04:25:26 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (1024-bit key) header.d=sourceforge.net header.i=@sourceforge.net header.b="ixKgECjd"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=sf.net header.i=@sf.net header.b="NBBhaHfo"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=kernel.org header.i=@kernel.org header.b="nx7p4ECX" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org E7E3B2065F Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=linux-f2fs-devel-bounces@lists.sourceforge.net Received: from [127.0.0.1] (helo=sfs-ml-2.v29.lw.sourceforge.com) by sfs-ml-2.v29.lw.sourceforge.com with esmtp (Exim 4.90_1) (envelope-from ) id 1jtkbF-0002xB-NR; Fri, 10 Jul 2020 04:25:25 +0000 Received: from [172.30.20.202] (helo=mx.sourceforge.net) by sfs-ml-2.v29.lw.sourceforge.com with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jtkbE-0002x4-Fq for linux-f2fs-devel@lists.sourceforge.net; Fri, 10 Jul 2020 04:25:24 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sourceforge.net; s=x; h=In-Reply-To:Content-Type:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To:Content-Transfer-Encoding: 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=Vg61HQiWdysQZ3KV1R3C5yzvZbuBX27naJIvDrdBW68=; b=ixKgECjdw28xIBkb/MFjWdzULL jJUZ/DeYpEd2jc24R74WooM6P1QuZ2k+jhOmDDNdhP9GOVhJSYOcM4kTcDrFDvldc2VMlDn0nfTEc ovlIWy5k6oZ22CP/ixpswFbCfsyugo5vjOkaT+aLlID1hEnPRnwER/5GAAYrQTpiW3rU=; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sf.net; s=x ; h=In-Reply-To:Content-Type:MIME-Version:References:Message-ID:Subject:Cc:To :From:Date:Sender:Reply-To:Content-Transfer-Encoding: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=Vg61HQiWdysQZ3KV1R3C5yzvZbuBX27naJIvDrdBW68=; b=NBBhaHfodyXJ8VfC+PcIMhBlP6 FJum9cRQfYb1coUe5eK5YT2g8KctxH9GsTboJRgbTKnrlyoWpINQtjJmzd+qc0C6UHaGio2Dd4+Tp AcX26h45GQpGXliwYPqhqqsYdKskdgIAEtkVenEVt6Izk1/wd9ZDJ/zvl3+aZk+5t7kg=; Received: from mail.kernel.org ([198.145.29.99]) by sfi-mx-4.v28.lw.sourceforge.com with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.92.2) id 1jtkb5-00Fqaj-AW for linux-f2fs-devel@lists.sourceforge.net; Fri, 10 Jul 2020 04:25:24 +0000 Received: from localhost (unknown [104.132.1.66]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id AF4B12065F; Fri, 10 Jul 2020 04:25:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1594355102; bh=tItDrONPBRZOV6/5pZezCVdiuHa+wnbdAjHG9PYwyS4=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=nx7p4ECX+lRZpi5t20WM/dU+Uu9JmJAhYCvWI/UkjC9JptX5GPNrbT7zUFBDWlnDs zx8tYbPNL17+uYhePD1UB1gN2C3+nnFKhTYrCpb6umz0GUVmjkVBND6xUY92aDUa8Z hYyNjLJcHNMiBeWykn7NE0zdmZAb9zUsCtswgcMw= Date: Thu, 9 Jul 2020 21:25:02 -0700 From: Jaegeuk Kim To: lampahome Message-ID: <20200710042502.GJ545837@google.com> References: <20200710034114.GG545837@google.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: X-Headers-End: 1jtkb5-00Fqaj-AW Subject: Re: [f2fs-dev] possible to allocate a full segment for a direct IO with blocksize 2MB? 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: , Cc: linux-f2fs-devel@lists.sourceforge.net Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: linux-f2fs-devel-bounces@lists.sourceforge.net On 07/10, lampahome wrote: > > How about using file pinning? > > I mean if IO blocksize or file size is multiple times of segment size > e.g. segment size = 2MB, and directIO blocksize is always 2MB. > I hope the 512 sub-blocks(4K blocksize) of each directIO will be in the > same segment. > > e.g. segment size = 2MB, I want to create a 2MB file. > I hope the 512 sub-blocks(4K blocksize) will be in the same segment. > > PIN file before fallocate will let allocated blocks in a whole full > segment? > Doc only wrote: > > > However, once F2FS receives ioctl(fd, F2FS_IOC_SET_PIN_FILE) in prior to > > fallocate(fd, DEFAULT_MODE), it allocates on-disk blocks addressess having > > zero or random data. Previously, fallocate doesn't allocate block addressess, but pinned file allows to allocate them aligned to 2MB-sized segment. > > > Or do I misunderstand? > > thanks _______________________________________________ Linux-f2fs-devel mailing list Linux-f2fs-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel