Re: physmem on FreeBSD, NetBSD
Pádraig Brady <[email protected]> Thu, 16 Jul 2026 11:49:27 +0100
| Newsgroups | gmane.comp.lib.gnulib.bugs |
|---|---|
| Message-ID | <[email protected]> |
On 16/07/2026 04:22, Collin Funk wrote: > Collin Funk <[email protected]> writes: > >> Bruno Haible <[email protected]> writes: >> >>>> I have attached a patch that works on FreeBSD. >>> >>> Thanks! In my 32 GiB VM it reports 31.5 GB; good. >>> >>> May I ask for a few cosmetic changes: >> >> All of those requests sound good to me. I pushed the attached v2 patch >> which addresses them. > > I also pushed the attached patch for NetBSD, since it feels fairly > straightforward. It only requires a single sysctl like the previously > used sysctl. > > Here is it compared to the output of 'top' on a NetBSD 10.1 VM: > > $ ./gltests/test-physmem > Total memory: 12884369408 B = 12287 MiB > Available memory: 12070146048 B = 11511 MiB > $ top | grep '^Memory:' > Memory: 196M Act, 21M Wired, 15M Exec, 168M File, 11G Free A coreutils build on cfarm13 (Debian 11.11) fails with: ../configure: syntax error near unexpected token `uvm/uvm_extern.h'../configure: ` uvm/uvm_extern.h' There was a line continuation missing, so I pushed a tweak for that. cheers, Padraig