I wonder what eats less memory: e.g. running a bunch of static svlogds from runit or run a bunch of BB svlogds?
I want to shrink codebase dependencies of my build system and am inclined to pull from busybox wonderful library the most I can. But always doubted what is better: to add a tiny private applet (and then try to share it with the list) or write a separate application (with dietlibc it can be really less than some KBs even statically linked). What do you think? -- Vladimir 2008/7/11, Denys Vlasenko <[EMAIL PROTECTED]>: > On Friday 11 July 2008 17:08, Vladimir Dronnikov wrote: >> Hello, Denys! >> >> A lame question suddenly came: if I run N of statically-compiled-BB >> applets >> I use N*sizeof(BB) bytes of memory, or just 1*sizeof(BB)? > > On most architectures, you would use slightly less than > > 1*text + N*(data+bss) + N*stack + (every running applet's malloc'ed data) > > In latest busybox, data+bss is around 7kb and stack is below 16k (I hope). > > On NOMMU, "slightly less than" does not apply. > > On really stupid CPUs which cannot even share text segment > you end up using N*text. Maybe on some of those CPU compiling > with LIBBUSYBOX=y helps to go back to 1*text. > -- > vda > _______________________________________________ busybox mailing list [email protected] http://busybox.net/cgi-bin/mailman/listinfo/busybox
