I just recently posted a patch to the linux-kernel mailing list to move rootfs/initramfs from ramfs to tmpfs. Now I'd like to test this out better. Currently I'm only using initramfs to store data so I'm new the this klibc thing. Tommorrow I'm going to try to get klibc working to run some programs in early-userspace. From what I've read so far, i'll need a swapon utility that's compiled against klibc. Does klibc have the swapon syscall? If it doesn't how hard would it be for me to add it in? I want to turn on swapping and create a file larger than my physical ram and see what happens... :) John
On Sun, 2003-11-30 at 01:57, John Zielinski wrote:> Does klibc have the > swapon syscall? If it doesn't how hard would it be for me to add it in?Yes, klibc already has a swapon syscall. You could have found this out by downloading it and running grep, by the way. Just for future reference :-) <b
On Sun, 2003-11-30 at 09:20, John Zielinski wrote:> I found some lkml messages on using using tmpfs for rootfs from about > two years ago but nothing recent. Do you know if anyone else tried this > before?No, but I'd expect it to work OK.> I figure that with all these subsystems being planned to be put > in initramfs it might me a good idea to have that memory swapped out > since I've seen a lot of embedded systems with little ram but lots of HD > space.Actually, I wouldn't expect that to be necessary. The most likely use of initramfs is to have just enough contents to make it possible to boot into a more normal userspace; we're not talking about more than a few hundred Kbytes. The main things that belong there from a functionality standpoint are udev, dm, and kinit, and they don't amount to much. <b