From nobody Tue Apr 25 15:27:37 2023 X-Original-To: bugs@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 4Q5QqG0q4Mz47KrT for ; Tue, 25 Apr 2023 15:27:38 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Q5QqF6ZnZz3l42 for ; Tue, 25 Apr 2023 15:27:37 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1682436457; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=GPO2uVHX6vhKOanDOcBMz9p3KPmKhR0A6aqudKOcZQg=; b=XZKeTs4X3pXproGWItU52XKSFEkSuB7EQXiY6JjDk46ZI72CgaIL9XmBnBHEpoa6VllVTV VZoWIOgoSxqK8r6aSRduXDR++J8ztk1cocKFDfrEXMPPzR3ap57v46gkWISXcigdMkC9aw BtZYuswsrw39xBX7KszwbcMFZ+1D3qlxcuxssSb2hAhDqvApRtfWw/BkE6GbIoWA7InSLJ WX4zXxbp5hWS2VBEgb+VJGwX+owAt3oSBdwzgeRRk81INmQtz0fpqDJ0fV+Ga05Ynh518r +DApwmLfcgSJLBgcAG1pdLksM30ILzfS4ZCo0HNIwB1mzcliiNx+p3a0l+E+WA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1682436457; a=rsa-sha256; cv=none; b=pOBvuK8FR7yJDeKm19n6W+zYONc0YcbcdXKNKTaTi6DehY5fr0J0h756NmjeDddYcoqi5A NSS3ajr5cy3SzRAOqyMBRj0k+bB1+zzWAIxwPz669nq8NX6+dIGoajOOjkqrpugAyciGfm fVNej4GTMq7ldvj3eehyjDTXGgUdoSKmyrKpUaOq0W7/mYkXKfWLG0l/lBAy2T2dWLSJGQ zT54TSEFHzYzHgberFSf8Bl6etxd9UgvaqrZ0FkFYhlpKOMcirD/P8hBNwKt2GFUPEMA6s 4VnqSc5lYSgPRGpvTGLn8nRZp6swmilCD1LsCnf8zaV+1snFUtnZPFBlrVYyQA== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4Q5QqF5cfhz1ByT for ; Tue, 25 Apr 2023 15:27:37 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 33PFRbbn037444 for ; Tue, 25 Apr 2023 15:27:37 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 33PFRbPP037441 for bugs@FreeBSD.org; Tue, 25 Apr 2023 15:27:37 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 271065] Kernel FUSE limits read() size by 64k/128k Date: Tue, 25 Apr 2023 15:27:37 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 13.2-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: asomers@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@freebsd.org MIME-Version: 1.0 X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D271065 --- Comment #1 from Alan Somers --- If your userland program opens the file with O_DIRECT and tries to do large reads, what size of read does the server see? That should bypass the cache= .=20 I'm not saying that it's a permanent solution, but it might be a good experiment. The clustering and readahead code happens above the file system, up in the = VFS. It enters fuse in fuse_vnop_strategy. I'm a little rusty in that area, bu= t I think that you'll want to tweak settings so as to maximize the value of bp->b_bcount that the VFS sends in VOP_STRATEGY, rather than try to increase the size that we read from within there. You could try setting F_READAHEAD with fcntl, though I think it will still = be limited by maxphys. By doing that, I'm able to get sizes of 1 MB in VOP_STRATEGY. And you should certainly be setting -o async_read in the sshfs process. If you're planning to change the clustering code itself, you should definit= ely talk to mckusick. --=20 You are receiving this mail because: You are the assignee for the bug.=