From: "Zeng Yu" <yu_zeng@263.net>
To: "Linux Kernel" <linux-kernel@vger.kernel.org>
Subject: Ramdisk Bug Report
Date: Fri, 29 Jun 2001 15:41:57 +0800 [thread overview]
Message-ID: <001501c1006e$fcf37220$0101a8c0@weqeqe> (raw)
Hi all,
Since the first question about ramdisk, I've done more test against the
problem both on kernel 2.2.16 and 2.4.4/2.4.5. Here's my test result:
kernel 2.4.4/2.4.5 have two ramdisk bugs.
1. the ramdisk uses two same size mem of buffers and cache, and the cache
can NOT be used by other processes untill the ramdisk be unmounted.
2. the ramdisk can dynamically grow as more space is required, but it can
NOT dynamically shrink as the space is released.
both bugs don't exist on kernel 2.2.16.
The test method is as follows:(on a 256M pentium 4 box, with default
mamimum ramdisk_size 100M)
for bug 1:
mke2fs -m0 /dev/ram1; mke2fs -m0 /dev/ram2
mount /dev/ram1 /mnt1; mount /dev/ram2 /mnt2
dd if=/dev/zero of=/mnt1/data bs=1k count=96000
#now ram1 is 100M, should have space for another 100M ramdisk, BUT
dd if=/dev/zero of=/mnt2/data bs=1k count=96000
system hang!
for bug 2:
mke2fs -m0 /dev/ram1; mke2fs -m0 /dev/ram2
mount /dev/ram1 /mnt1; mount /dev/ram2 /mnt2
dd if=/dev/zero of=/mnt1/data bs=1k count=96000
#same as above, but try to free allocated ramdisk buffers first
rm /mnt1/data
#ram1 should shrink to about zero thus leave space for another 100M
#ramdisk, BUT
dd if=/dev/zero of=/mnt2/data bs=1k count=96000
system still hang!
reply other threads:[~2001-06-29 7:47 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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='001501c1006e$fcf37220$0101a8c0@weqeqe' \
--to=yu_zeng@263.net \
--cc=linux-kernel@vger.kernel.org \
/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
all inboxes | Powered by JetHome®