On Thu, 22 Mar 2007, Kamil Monticolo wrote:

> > The OpenBSD kernel is a bit over 5MB. I assume that gets loaded into memory
> > and is not swappable, giving me 43MB left, which isn't a lot.
> 
> You can turn off ipv6, altq if not needed, and of course lots of hardware 
> that you don't need also. For example I have a 2 x smaller kernel that 
> GENERIC on my laptop:
> $ uname -a            
> OpenBSD squirrel 4.1 BIRKOFF#0 i386
> $ ls -lh /bsd{,.orig} 
> -rw-r--r--  1 root  wheel   2.9M Mar  9 00:39 /bsd
> -rw-r--r--  1 root  wheel   5.8M Feb 22 13:32 /bsd.orig
> 
> You may also stripe nearly all of your libraries, for example:
> 
> # ls -lhS /usr/lib/libcrypto*a
> -r--r--r--  1 root  bin  11.7M Mar 22 13:53 /usr/lib/libcrypto_pic.a
> -r--r--r--  1 root  bin  11.6M Mar 22 13:53 /usr/lib/libcrypto_p.a
> -r--r--r--  1 root  bin  11.5M Mar 22 13:53 /usr/lib/libcrypto.a
> # strip -s /usr/lib/libcrypto*a
> # ls -lhS /usr/lib/libcrypto*a  
> -r--r--r--  1 root  bin   909K Mar 22 13:53 /usr/lib/libcrypto_pic.a
> -r--r--r--  1 root  bin   865K Mar 22 13:53 /usr/lib/libcrypto_p.a
> -r--r--r--  1 root  bin   835K Mar 22 13:53 /usr/lib/libcrypto.a
> 
> looks fine? Hope this helps.
> 
> Kamil Monticolo aka birkoff

It saves even more space if you do

alias strip=rm

        -Otto

Reply via email to