From nobody Wed Mar 23 22:26:16 2022 X-Original-To: freebsd-fs@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 158701A27C4E for ; Wed, 23 Mar 2022 22:26:29 +0000 (UTC) (envelope-from asomers@gmail.com) Received: from mail-ot1-f51.google.com (mail-ot1-f51.google.com [209.85.210.51]) (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 4KP2yD1Ymqz3JNW for ; Wed, 23 Mar 2022 22:26:28 +0000 (UTC) (envelope-from asomers@gmail.com) Received: by mail-ot1-f51.google.com with SMTP id k18-20020a9d7012000000b005cdb11186f2so802587otj.9 for ; Wed, 23 Mar 2022 15:26:28 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=uiwu25dmIbH1hX+FEYwAPo3ApwKhd9/SMU5uyAZsy9o=; b=aoUsz+ylZgrJ87aY0DMn7MKBREi+lv3oOMV3krVqakv39EBA7Nv+hLnXIRt4VlsNlR 9qDYf7zsPUs7kFzBj9Yb+tSpiT1jg8uPWeCeHz51vJfolRhR9V1mytRSg14gWWqds4xB ZFI7as4kn+PjIA8sYuSVaL9iXvJs3blkeMMyXGymS0kGRs6HPNuKdXAnh8P9afY1F5um QBHIxIAwfJwYwswJE4Uvb7JBQO+hVhlavG1fRVpLUJKG1LZaY+9DwiyXIQ+skn91eXao ziaeoK80kANJizL6hTGRj+9N4QZgwlQMbRrAP/m4he4L8RzMJFND6KTMjRnIolv+Oxj3 hFUg== X-Gm-Message-State: AOAM533DuijEGVW4eB9CbNuCveabenkASvAbFf7tl1qvVq/+1LSWXmHX PhCzOWvwR8ZEFViJyg3Rq48wQvshyM7FiY9nWow16wSguDE= X-Google-Smtp-Source: ABdhPJyuwmx8le+ZlOumyvFKLX8PsDDrOWf024QI9o/noSiqmg3LXVvoqW2myTRDULkp685DF0UhUZk2XaRn79Vo66Y= X-Received: by 2002:a9d:65d7:0:b0:5b2:7265:efcd with SMTP id z23-20020a9d65d7000000b005b27265efcdmr944096oth.371.1648074387134; Wed, 23 Mar 2022 15:26:27 -0700 (PDT) List-Id: Filesystems List-Archive: https://lists.freebsd.org/archives/freebsd-fs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-fs@freebsd.org MIME-Version: 1.0 From: Alan Somers Date: Wed, 23 Mar 2022 16:26:16 -0600 Message-ID: Subject: What's the best FS-agnostic test suite for a file system's data path operations? To: freebsd-fs Content-Type: text/plain; charset="UTF-8" X-Rspamd-Queue-Id: 4KP2yD1Ymqz3JNW X-Spamd-Bar: / Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of asomers@gmail.com designates 209.85.210.51 as permitted sender) smtp.mailfrom=asomers@gmail.com X-Spamd-Result: default: False [0.98 / 15.00]; RWL_MAILSPIKE_GOOD(0.00)[209.85.210.51:from]; R_SPF_ALLOW(-0.20)[+ip4:209.85.128.0/17:c]; TO_DN_ALL(0.00)[]; NEURAL_HAM_SHORT(-0.02)[-0.019]; FORGED_SENDER(0.30)[asomers@freebsd.org,asomers@gmail.com]; SUBJECT_ENDS_QUESTION(1.00)[]; R_DKIM_NA(0.00)[]; FREEMAIL_ENVFROM(0.00)[gmail.com]; MIME_TRACE(0.00)[0:+]; FROM_NEQ_ENVFROM(0.00)[asomers@freebsd.org,asomers@gmail.com]; ASN(0.00)[asn:15169, ipnet:209.85.128.0/17, country:US]; ARC_NA(0.00)[]; TO_DOM_EQ_FROM_DOM(0.00)[]; FREEFALL_USER(0.00)[asomers]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-0.99)[-0.995]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-fs@freebsd.org]; DMARC_NA(0.00)[freebsd.org]; NEURAL_SPAM_MEDIUM(0.99)[0.990]; RCPT_COUNT_ONE(0.00)[1]; RCVD_IN_DNSWL_NONE(0.00)[209.85.210.51:from]; MLMMJ_DEST(0.00)[freebsd-fs]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[] X-ThisMailContainsUnwantedMimeParts: N pjdfstest is great at testing control-path operations, like mkdir, chmod, etc. And it works on any POSIX-compliant file system. But it doesn't include any datapath operations like write, read, or copy_file_range. fsx is great for finding datapath bugs and it also works on any posix-compliant operating system. However, it's a random torture test, not deterministic. Does anybody have any good ideas for how to either turn fsx deterministic, or else a good argument that random torture tests are inherently superior to deterministic tests for datapath operations? Alternatively, does anybody know of a good alternative to fsx? I've heard of fsstress and xfstests. But the former looks pretty much like an fsx clone, and the latter isn't totally file-system agnostic. There's some urgency here: I've already had five inquiries about my pjdfstest rewrite proposal for GSoC. I hate turning people down, so I'm wondering if I can extend the proposal to accomodate two students, or maybe create a second proposal. Some possibilities: * Merge fsx into pjdfstest (my first idea) * Extend fsx to include newer operations like copy_file_range and fspacectl (probably too small for a whole summer) Another GSoC idea would be to implement virtio-fs. However, I haven't done my own homework on that yet. I don't know how hard it would be. If anybody has any other ideas, please add them to the wiki at https://wiki.freebsd.org/SummerOfCodeIdeas ASAP because there's a lot of interest this year. -Alan