All of lore.kernel.org
 help / color / mirror / Atom feed
* ramdisk contents lost with 2.6
@ 2003-11-24 17:49 Olaf Hering
  2003-11-24 20:07 ` Andrew Morton
  0 siblings, 1 reply; 2+ messages in thread
From: Olaf Hering @ 2003-11-24 17:49 UTC (permalink / raw)
  To: linux-kernel

Good morning,

is it only me or is the file really gone with 2.6?

umount -v /mnt
/sbin/mkfs.ext2 /dev/ram3
mount -v /dev/ram3 /mnt
cp /etc/hosts /mnt
sync
umount -v /mnt
mount -v /dev/ram3 /mnt
ls -l /mnt/hosts
umount -v /mnt


works ok with 2.4.


-- 
USB is for mice, FireWire is for men!

sUse lINUX ag, nÜRNBERG

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: ramdisk contents lost with 2.6
  2003-11-24 17:49 ramdisk contents lost with 2.6 Olaf Hering
@ 2003-11-24 20:07 ` Andrew Morton
  0 siblings, 0 replies; 2+ messages in thread
From: Andrew Morton @ 2003-11-24 20:07 UTC (permalink / raw)
  To: Olaf Hering; +Cc: linux-kernel

Olaf Hering <olh@suse.de> wrote:
>
> Good morning,
> 
> is it only me or is the file really gone with 2.6?
> 
> umount -v /mnt
> /sbin/mkfs.ext2 /dev/ram3
> mount -v /dev/ram3 /mnt
> cp /etc/hosts /mnt
> sync
> umount -v /mnt
> mount -v /dev/ram3 /mnt
> ls -l /mnt/hosts
> umount -v /mnt
> 
> 
> works ok with 2.4.
> 

Yup.  Because the kernel considers the ramdisk as being "memory backed" it
doesn't do writeback into the blockdev pagecache.  If you remove the
memory-backed flag, ramdisk contributes to dirty memory in undesirable
ways.  That memory-backed flag is too overloaded and needs to be split up.

It's something I need to fix, but nobody seemed to be hurting from it up to
now so I figured it could wait until after 2.6.0.


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2003-11-24 20:06 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-11-24 17:49 ramdisk contents lost with 2.6 Olaf Hering
2003-11-24 20:07 ` Andrew Morton

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.