All of lore.kernel.org
 help / color / mirror / Atom feed
* Reclaim space from unused ramdisk?
@ 2005-07-26 22:16 Mike Mohr
  2005-07-26 23:21 ` Marc Ballarin
  2005-07-27  6:25 ` Jan Engelhardt
  0 siblings, 2 replies; 8+ messages in thread
From: Mike Mohr @ 2005-07-26 22:16 UTC (permalink / raw)
  To: linux-kernel

I wonder if it would be possible to somehow reclaim space that has
been previously reserved for a ramdisk without rebooting.  I read the
ramdisk docs in the latest kernel source and it seems that it is not
currently possible.  However, the kernel keeps track of the memory
allocated for said ramdisks; would it not be possible with root (or
even kernel) permissions to remove the flag that prevents the VM
subsystem from reclaiming that space?  I realize that rot permissions
may not be high enough.  In that case, could a module be written that
takes a device name as a parameter then uses it to look up the
reserved memory that device uses, then resets the necessary flag and
finally unloads itself?  It would have to check that the filesystem
was unmounted, of course.

How difficult would this be to write?

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

end of thread, other threads:[~2005-07-27  9:04 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-07-26 22:16 Reclaim space from unused ramdisk? Mike Mohr
2005-07-26 23:21 ` Marc Ballarin
2005-07-27  6:25 ` Jan Engelhardt
2005-07-27  6:56   ` Andrew Morton
2005-07-27  7:52     ` Jan Engelhardt
2005-07-27  7:55       ` Andrew Morton
2005-07-27  8:28         ` Jan Engelhardt
2005-07-27  9:04           ` Jan Engelhardt

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.