FreeBSD src
Go to file
Mark Johnston 3e5fae34fc Stop computing a "sharedram" value when emulating Linux sysinfo(2).
The previous code was computing an incorrect value in a very expensive
manner.  "sharedram" is supposed to be the amount of memory used by
named swap objects, which on FreeBSD basically corresponds to memory
usage by shared memory objects (including, for example, GEM objects) and
tmpfs.  We currently have no cheap way to count such pages.  The
previous code tried to determine the number of copy-on-write pages
shared between processes.

Just replace the computed value with 0.  illumos reportedly does the
same thing.  Linux itself did not populate this field until a 2014
commit, "mm: export NR_SHMEM via sysinfo(2) / si_meminfo() interfaces".

Reported by:	mjg
MFC after:	1 week
2020-06-08 22:29:52 +00:00
bin ps: use %hs instead of %s format specifiers 2020-06-07 08:21:19 +00:00
cddl Restore the binary compatibility for link_map l_addr. 2020-05-21 22:24:23 +00:00
contrib lld: Set DF_1_PIE for -pie 2020-06-02 22:57:13 +00:00
crypto Merge OpenSSL 1.1.1g. 2020-04-21 19:38:32 +00:00
etc Restrict default /root permissions 2020-06-04 16:04:19 +00:00
gnu Remove now-unused GNU as build infrastructure 2020-06-07 13:53:23 +00:00
include Revert r361770 "Add pthread_getname_np() and pthread_setname_np() aliases" for now. 2020-06-04 09:06:03 +00:00
kerberos5
lib Rename skein_block_asm.s to .S and assemble using Clang IAS 2020-06-06 00:35:41 +00:00
libexec Uppercase 'dso' to indicate that it is abbreviation. 2020-06-02 17:33:10 +00:00
release Include the shells/bash port on Vagrant images, which prevents 2020-05-28 18:48:30 +00:00
rescue
sbin x86 boot.8: Remove obsolescent non-loader x86 boot documentation 2020-06-08 00:46:19 +00:00
secure Install 32-bit libcrypto engines in /usr/lib32/engines instead of 2020-06-01 18:58:09 +00:00
share Document that /lib is always in the list of shared library paths 2020-06-08 09:33:45 +00:00
stand loader: install allow for more complete device spec in url 2020-06-08 18:13:38 +00:00
sys Stop computing a "sharedram" value when emulating Linux sysinfo(2). 2020-06-08 22:29:52 +00:00
targets libalias: retire cuseeme support 2020-05-16 02:29:10 +00:00
tests bridge tests: Re-enable STP test 2020-06-07 13:53:02 +00:00
tools Retire BINUTILS and BINUTILS_BOOTSTRAP options 2020-06-07 00:07:21 +00:00
usr.bin Use Fl instead of Ar for long flags 2020-06-08 21:11:34 +00:00
usr.sbin crashinfo: stop looking for gdb in /usr/bin/gdb 2020-06-08 16:11:44 +00:00
.arcconfig
.arclint arc lint: ignore /tests/ in chmod 2017-12-19 03:38:06 +00:00
.cirrus.yml
.clang-format
.gitattributes
.gitignore Vendor import of Unbound 1.10.1. 2020-05-21 05:01:52 +00:00
COPYRIGHT Import lib9p 7ddb1164407da19b9b1afb83df83ae65a71a9a66. 2020-04-29 16:24:32 +00:00
LOCKS
MAINTAINERS ice(4): Introduce new driver for Intel E800 Ethernet controllers 2020-05-26 23:35:10 +00:00
Makefile Import bmake-20200517 2020-05-20 19:34:48 +00:00
Makefile.inc1 Retire BINUTILS and BINUTILS_BOOTSTRAP options 2020-06-07 00:07:21 +00:00
Makefile.libcompat Stop building libl and liby 2020-03-26 08:23:09 +00:00
Makefile.sys.inc
ObsoleteFiles.inc Retire BINUTILS and BINUTILS_BOOTSTRAP options 2020-06-07 00:07:21 +00:00
README Import OpenSSL 1.1.1g. 2020-04-21 19:07:46 +00:00
README.md Vendor import of Unbound 1.10.1. 2020-05-21 05:01:52 +00:00
RELNOTES RELNOTES: Post-portem note about sed(1) \x support 2020-06-08 02:42:41 +00:00
UPDATING RELNOTES and UPDATING: Document the new policy on read(2) of dirfd 2020-06-04 18:19:16 +00:00

FreeBSD Source:

This is the top level of the FreeBSD source directory. This file was last revised on: FreeBSD

FreeBSD is an operating system used to power modern servers, desktops, and embedded platforms. A large community has continually developed it for more than thirty years. Its advanced networking, security, and storage features have made FreeBSD the platform of choice for many of the busiest web sites and most pervasive embedded networking and storage devices.

For copyright information, please see the file COPYRIGHT in this directory. Additional copyright information also exists for some sources in this tree - please see the specific source directories for more information.

The Makefile in this directory supports a number of targets for building components (or all) of the FreeBSD source tree. See build(7), config(8), https://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/makeworld.html, and https://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/kernelconfig.html for more information, including setting make(1) variables.

Source Roadmap:

bin		System/user commands.

cddl		Various commands and libraries under the Common Development
		and Distribution License.

contrib		Packages contributed by 3rd parties.

crypto		Cryptography stuff (see crypto/README).

etc		Template files for /etc.

gnu		Various commands and libraries under the GNU Public License.
		Please see gnu/COPYING* for more information.

include		System include files.

kerberos5	Kerberos5 (Heimdal) package.

lib		System libraries.

libexec		System daemons.

release		Release building Makefile & associated tools.

rescue		Build system for statically linked /rescue utilities.

sbin		System commands.

secure		Cryptographic libraries and commands.

share		Shared resources.

stand		Boot loader sources.

sys		Kernel sources.

sys/<arch>/conf Kernel configuration files. GENERIC is the configuration
		used in release builds. NOTES contains documentation of
		all possible entries.

tests		Regression tests which can be run by Kyua.  See tests/README
		for additional information.

tools		Utilities for regression testing and miscellaneous tasks.

usr.bin		User commands.

usr.sbin	System administration commands.

For information on synchronizing your source tree with one or more of the FreeBSD Project's development branches, please see:

https://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/current-stable.html