Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 21 Nov 2016 23:45:05 +0700
From:      Eugene Grosbein <eugen@grosbein.net>
To:        Michael Zhilin <mizhka@gmail.com>
Cc:        freebsd-mips@freebsd.org, Adrian Chadd <adrian.chadd@gmail.com>
Subject:   Re: MIPS code size strangeness
Message-ID:  <58332491.3000706@grosbein.net>
In-Reply-To: <CAF19XBLaZ=t_HPm079vsXvT5vBLunPib94d6=hNkzRd2xz5EPg@mail.gmail.com>
References:  <5831E800.60003@grosbein.net> <CAJ-VmokUfc2ABY1O0B7RqzfCmU_99VwnCmmHfhcRhM5NcH4Ubg@mail.gmail.com> <5832FF33.9010307@grosbein.net> <CAF19XB%2BwS%2BeCrv1mtmXLS1b7SJNZbQUD_2PFZXkhyvX-4wfeLQ@mail.gmail.com> <58330AB6.60306@grosbein.net> <CAF19XBLaZ=t_HPm079vsXvT5vBLunPib94d6=hNkzRd2xz5EPg@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On 21.11.2016 23:10, Michael Zhilin wrote:
> Eugene,
> 
> LZMA compression?

Of course. About 30MB uncompressed.

> Could you please share list of your mfsroot files? I'll check tonight what can be done with MIPS bits...

First, our kernel is pretty large for restricted space, mine is 5MB uncompressed.

kern_jail.o is totally unneeded but occupies 248456 bytes.
swap_pager.o occupies 227556 bytes despite of NO_SWAPPING kernel option,
plus vm_pageout.o has 157676 bytes in size.

As for userland, I need complete openssl/openssh{d} "packs" and many other generic UNIX tools:

640     openssl
220     ssh
212     awk
208     less
176     ftp
160     telnet
144     netstat
136     systat
112     grep
96      sftp
92      xz
92      top
92      ee
84      tip
80      sort
68      ssh-keygen
68      find
68      bsdtar
...

They depend on lots of shared libraries, largest one is libarchive.so.6:
864     libarchive.so.6
768     libprivatessh.so.5
480     libssl.so.8
236     libprivateucl.so.1
184     liblzma.so.5
164     libpmc.so.5
132     libbsm.so.3
120     libsysdecode.so.5
84      libusb.so.3
84      libgnuregex.so.5
80      libformw.so.5
76      libbz2.so.4
72      libfetch.so.6
68      libform.so.5
56      libpam.so.6
52      libsmb.so.4
...

Some binaries located in /sbin are bigger for MIPS than for amd64, too:

896     init	 # statically linked
188     ifconfig
184     ipfw
168     fsck_ffs
116     dhclient
88      setkey
48      newfs
40      ping
...

And /usr/sbin, too:
960     tcpdump
864     hostapd
324     sshd
152     ntpdate
...

Files not mentioned are much smaller.

Eugene Grosbein




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?58332491.3000706>