Skip to contentSkip to conversation

Can't free the ramdisk (initrd, pivot_root)

DISCUSSION Amit D Chaudhary 3 participants 3 messages Apr 15, 2001 – Apr 16, 2001

lore
Share & tools
lore
#0 lore raw

On the same topic, I have not found any change in free memory reported before and after the ioctl call. Though umount /initrd does free around 2 MB.

Amit

#1 lore raw
Followup to:  <[email protected]>
By author:    Amit D Chaudhary <[email protected]>
In newsgroup: linux.dev.kernel
Quoted 5 lines

On the same topic, I have not found any change in free memory reported before and after the ioctl call. Though umount /initrd does free around 2 MB.

With Scott's patch applied, I get substantially better performance on low-memory machines, so I'm guessing it's doing its job. Also, just umount /initrd for me made it still possible to mount it, so it clearly did not go away.

-hpa

Signature · 3 lines
<[email protected]> at work, <[email protected]> in private!
"Unix gives you enough rope to shoot yourself in the foot."
http://www.zytor.com/~hpa/puzzle.txt
#2 lore raw
Quoted 9 lines · H. Peter Anvin
Followup to:  <[email protected]>
By author:    Amit D Chaudhary <[email protected]>
In newsgroup: linux.dev.kernel
Quoted 5 lines

On the same topic, I have not found any change in free memory reported before and after the ioctl call. Though umount /initrd does free around 2 MB.

Quoted 4 lines

With Scott's patch applied, I get substantially better performance on low-memory machines, so I'm guessing it's doing its job. Also, just umount /initrd for me made it still possible to mount it, so it clearly did not go away.

I can't take credit for the patch, just the (mis)fortune of having to track down its existence. :) All mentions of it in Alan's older change logs have it uncredited, so I'm unsure if he or someone else fixed it.

Scott

Signature · 5 lines
=============================================================================
Scott Murray                                        email: [email protected]
http://www.spiteful.org (coming soon)                 ICQ: 10602428
-----------------------------------------------------------------------------
     "Good, bad ... I'm the guy with the gun." - Ash, "Army of Darkness"