From: Andrew Morton <akpm@osdl.org>
To: Mike Fedyk <mfedyk@matchmail.com>
Cc: linux-kernel@vger.kernel.org, Neil Brown <neilb@cse.unsw.edu.au>
Subject: Re: 4.1GB limit with nfs3, 2.6 & knfsd?
Date: Mon, 9 Feb 2004 21:50:20 -0800 [thread overview]
Message-ID: <20040209215020.60cf2f93.akpm@osdl.org> (raw)
In-Reply-To: <20040210043926.GG18674@srv-lnx2600.matchmail.com>
Mike Fedyk <mfedyk@matchmail.com> wrote:
>
> Hi,
>
> I was trying to tar and bzip2 some directories over the weekend and I think
> I may have found a bug.
>
> The operation would consistantly fail when the bzip2ed tar file hit 4.1GB
> when directed at a 2.6.1-bk2-nfs-stale-file-handles knfsd server from
> another computer running the same kernel.
>
> If I try the operation against a local filesystem, or a 2.4.24 knfsd server
> on the network there are no failures and the file is at 18GB and growing on
> the local filesystem (not enough space on the 2.4 server...).
>
> This is all from the same nfs client computer.
>
> I plan on doing some more tests with dd and cat against the server after the
> files have finished compressing.
>
> Anyone have any ideas? I know this could be userspace, but why does it work
> against a 2.4 knfsd and on the local filesystem?
Yes, something funny does seem to be happening.
I have a simple NFS mount of an ext2 filesystem via localhost and a 6GB
`dd' fails after 4G:
vmm:/mnt/localhost> strace dd if=/dev/zero of=foo bs=1M count=6000
...
write(1, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 1048576) = 1048576
read(0, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 1048576) = 1048576
write(1, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 1048576) = 1048576
read(0, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 1048576) = 1048576
write(1, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 1048576) = -1 EINVAL (Invalid argument)
vmm:/mnt/localhost> ls -l foo
-rw-r--r-- 1 akpm akpm 4296015872 Feb 9 21:36 foo
But after that, one can continue to grow the file:
vmm:/mnt/localhost> cat /dev/zero >> foo
^C
vmm:/mnt/localhost> ls -l foo
-rw-r--r-- 1 akpm akpm 4573638656 Feb 9 21:48 foo
Maybe Neil can shed some light?
next prev parent reply other threads:[~2004-02-10 5:47 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-02-10 4:39 4.1GB limit with nfs3, 2.6 & knfsd? Mike Fedyk
2004-02-10 5:50 ` Andrew Morton [this message]
2004-02-10 5:53 ` Neil Brown
2004-02-10 6:08 ` Mike Fedyk
2004-02-10 6:15 ` Neil Brown
2004-02-10 6:38 ` Andrew Morton
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20040209215020.60cf2f93.akpm@osdl.org \
--to=akpm@osdl.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mfedyk@matchmail.com \
--cc=neilb@cse.unsw.edu.au \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox