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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 828CAC64EC4 for ; Wed, 8 Mar 2023 13:47:12 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230268AbjCHNrL (ORCPT ); Wed, 8 Mar 2023 08:47:11 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41354 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231205AbjCHNq7 (ORCPT ); Wed, 8 Mar 2023 08:46:59 -0500 Received: from mail-ed1-x536.google.com (mail-ed1-x536.google.com [IPv6:2a00:1450:4864:20::536]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7E07E12F0A for ; Wed, 8 Mar 2023 05:46:44 -0800 (PST) Received: by mail-ed1-x536.google.com with SMTP id x3so65832857edb.10 for ; Wed, 08 Mar 2023 05:46:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1678283203; h=content-transfer-encoding:in-reply-to:from:references:to:subject :user-agent:mime-version:date:message-id:from:to:cc:subject:date :message-id:reply-to; bh=Fr/0R0DEjKH8Tmhf+6B7HNslRNOPb1dZRVDSeatBc7E=; b=Npf7fc/Px770ucxN+nkxiPD0WSmuFHsPQlN0DBAjsktzMRKi/G4oFkQE2M9kub5E5e 97wzuPe7XDGIdHhoAZ4P1bOA6Ky8+M0QgD2DQQ4w3hqUQbtKxMbg0CdQi5XyiJag3reU weQEVy21x0evJmlkiomdraIiItHwkPDTRhfo+gtil9T4dYZ72r3JirFjOjL7C5niprCR U0hrGCNla9Xpo4iGcz6JEShdt1twuOXt0eStI5A0Q590204aDMTjvSAqGArnECO8FBeC g+Hc7975lCC0ZK/7txxVWlUSWFODzHYmq5FdYMDO3jXImJ6J/nf5NhdOkEATsPDhR21L bcjQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678283203; h=content-transfer-encoding:in-reply-to:from:references:to:subject :user-agent:mime-version:date:message-id:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=Fr/0R0DEjKH8Tmhf+6B7HNslRNOPb1dZRVDSeatBc7E=; b=OYno/22MK6dR5iiYYQprpNtg9ROhqaFBI23OBAL2ln4+WKwu6NuuAXkOl0QHy2zFaa voQhDD+SZfqPZBJsCA5d+MFYaLGIkpWKPpdMmYxTEgbW16EgRkBalpW6fdGwL8S+miDY wBZ89v0Zc+iZy6rOKAYMh/nJ4oUgdpu4n0foiX8Ins12pcZWjG6rxADGPKf5a6Roa3Jr ZNX4sM6JVocHgse7oGkdgi/enPLDjZo/ON+u/+DliNxgC03PBY0vcT05YWprozVopnKX 4zNQHrWHjxWh7Dh8u/YhJNxoVOUHTiK7uZ8dRj8oALwBSXa3+haUVf1qXwVXr6KDuiBP J2kQ== X-Gm-Message-State: AO0yUKXh+Vgo8+8iHu4iLXy4eF8h36H69EWjb543YkBeLCGdfLPsASmI 1Y6buiJjpt6xT1+XnVCcicA= X-Google-Smtp-Source: AK7set8d6NTgAGBz/P9PwxgVySkmIFm1TsW8aRgQ260OCkj1hSSQfkWQbVAgMKoZMYZO+0eVdEPpqw== X-Received: by 2002:a17:906:3f5d:b0:871:178d:fc1e with SMTP id f29-20020a1709063f5d00b00871178dfc1emr17189715ejj.77.1678283202804; Wed, 08 Mar 2023 05:46:42 -0800 (PST) Received: from [10.88.133.44] ([193.16.224.12]) by smtp.gmail.com with ESMTPSA id p20-20020a17090653d400b008e97fdd6c7csm7452717ejo.129.2023.03.08.05.46.41 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 08 Mar 2023 05:46:42 -0800 (PST) Message-ID: <0f93974c-e374-cae4-f165-d81583c5441f@gmail.com> Date: Wed, 8 Mar 2023 14:46:41 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.8.0 Subject: Re: Using fio with adjusted parameters for use case "DB" To: Vincent Fu , fio@vger.kernel.org References: <1e123883-b2c0-ed9f-7242-49f6c3d5bc44@gmail.com> From: Thomas Schneider <74cmonty@gmail.com> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: fio@vger.kernel.org Hello, thanks for your reply. I have discussed with DB developers which values should be used for - iodepth and - numjobs With regards to iodepth I was told that a max. value could be defined in DB's global ini; the default is 512. This means the DB could use this queue depth as max. but certainly no as average. Question: From your experience, does it make sense to run IO benchmark with iodepth=512? THX Am 07.03.2023 um 16:22 schrieb Vincent Fu: > On 3/7/23 09:30, Thomas Schneider wrote: >> Hello, >> >> I want to benchmark different storage devices with an I/O workload >> generated by the "real" application: DB. >> >> A typcial command could be: >> fio --name=random-writers --ioengine=libaio --iodepth=4 >> --rw=randwrite --bs=1024 --direct=1 --size=64m --numjobs=2 runtime=120s >> >> The question is regarding parameters size and runtime: >> - What value should be used for size? Should this be the same as >> allocated disk space by DB data files? Or just a (reasonable) portion >> of this? DB data files could be up to xTB. >> - Is it advisable to use runtime? If yes, would this somehow >> contradict to size, means if I use a larger size, then runtime is >> obviously longer. >> > > The documentation for runtime is here: > > https://fio.readthedocs.io/en/latest/fio_doc.html#cmdoption-arg-runtime > > Fio will write within the LBAs bounded by offset and size and stop > when it has touched all the LBAs or when runtime is attained. Run some > experiments with --debug=io to better understand fio's behavior. > > Also take a look at the example job files for help: > > https://github.com/axboe/fio/tree/master/examples > > Vincent >