i386 with 4GB RAM: less than 2GB available on A2SAV (Intel Atom E3940)

Konstantin Belousov kostikbel at gmail.com
Tue Jan 30 14:21:07 UTC 2018


On Tue, Jan 30, 2018 at 07:54:41AM -0600, Mike Karels wrote:
> > On 30.01.2018 13:59, Andre Albsmeier wrote:
> 
> > >> Also, I'd like to know reasons that made you stick to 32 bit OS
> > >> as we have pretty good support for 32 bit applications running under 64 bit system.
> > > 
> > > I (still) have 32 bit machines and don't want to maintain 2 userlands.
> > > Each machine has its own kernel but userland (updated via nfs) must
> > > remain 32 bit.
> > > 
> > > Or is it possible to boot a 64 bit kernel and have everything else in
> > > 32 bit?
> 
> > I have not tried "everything else in 32 bit", there may be some rough edges
> > dealing with run-time linker but you can try.
> 
> > /sbin/init is statically linked and it should work with kernel having option COMPAT_FREEBSD32.
> > /bin/sh may be OK too provided /libexec/ld-elf32.so.1 is in place.
> 
> > You should really consider switching to 64 bit kernel for such hardware.
> 
> You definitely cannot run all of userland in 32-bit mode.  There are many
> sysadin programs that have incompatible syscall interfaces, starting with
> mount, ifconfig, ps, route, netstat, etc (probably 50 total).  Unless they
> were all statically linked, you would have to install the 64-bit shared
> libraries, moving the 32-bit libraries to /lib32 and /usr/lib32, and
> switching around /libexec/ld-elf*.
ps(8) compatibility for compat32 is nearly perfect, mount (in its nmount
syscall variant) also works. There is no issue with /libexec/ld-elf.so.1
being 32bit, whatever rumors whoever tried to spread.

Yes, networking administrative interfaces are not functional for compat32.
This precludes both ifconfig(8) and route(8) from operating.  Also, firewall
management tools, for all three FreeBSD firewalls, can only work with
matching kernel.

> 
> Or, if you really want the userland to be the same, you could use a PAE
> kernel.
> 
> 		Mike
> _______________________________________________
> freebsd-stable at freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-stable
> To unsubscribe, send any mail to "freebsd-stable-unsubscribe at freebsd.org"


More information about the freebsd-stable mailing list