<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src-test2/sys/vm/vm_unix.c, branch release/5.5.0</title>
<subtitle>FreeBSD source tree</subtitle>
<id>https://cgit-dev.freebsd.org/src-test2/atom?h=release%2F5.5.0</id>
<link rel='self' href='https://cgit-dev.freebsd.org/src-test2/atom?h=release%2F5.5.0'/>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/'/>
<updated>2005-01-31T23:27:04Z</updated>
<entry>
<title>MFC: /*- and related license changes</title>
<updated>2005-01-31T23:27:04Z</updated>
<author>
<name>Warner Losh</name>
<email>imp@FreeBSD.org</email>
</author>
<published>2005-01-31T23:27:04Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=c9769f3ab5327a99909391e070c143e92ddc43ec'/>
<id>urn:sha1:c9769f3ab5327a99909391e070c143e92ddc43ec</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Remove advertising clause from University of California Regent's license,</title>
<updated>2004-04-06T20:15:37Z</updated>
<author>
<name>Warner Losh</name>
<email>imp@FreeBSD.org</email>
</author>
<published>2004-04-06T20:15:37Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=05eb3785e755044e8f30f064b5be4fe1ac788dbd'/>
<id>urn:sha1:05eb3785e755044e8f30f064b5be4fe1ac788dbd</id>
<content type='text'>
per letter dated July 22, 1999.

Approved by: core
</content>
</entry>
<entry>
<title>Locking for the per-process resource limits structure.</title>
<updated>2004-02-04T21:52:57Z</updated>
<author>
<name>John Baldwin</name>
<email>jhb@FreeBSD.org</email>
</author>
<published>2004-02-04T21:52:57Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=91d5354a2ce810d848eca6ecf9da1027aeb2be6d'/>
<id>urn:sha1:91d5354a2ce810d848eca6ecf9da1027aeb2be6d</id>
<content type='text'>
- struct plimit includes a mutex to protect a reference count.  The plimit
  structure is treated similarly to struct ucred in that is is always copy
  on write, so having a reference to a structure is sufficient to read from
  it without needing a further lock.
- The proc lock protects the p_limit pointer and must be held while reading
  limits from a process to keep the limit structure from changing out from
  under you while reading from it.
- Various global limits that are ints are not protected by a lock since
  int writes are atomic on all the archs we support and thus a lock
  wouldn't buy us anything.
- All accesses to individual resource limits from a process are abstracted
  behind a simple lim_rlimit(), lim_max(), and lim_cur() API that return
  either an rlimit, or the current or max individual limit of the specified
  resource from a process.
- dosetrlimit() was renamed to kern_setrlimit() to match existing style of
  other similar syscall helper functions.
- The alpha OSF/1 compat layer no longer calls getrlimit() and setrlimit()
  (it didn't used the stackgap when it should have) but uses lim_rlimit()
  and kern_setrlimit() instead.
- The svr4 compat no longer uses the stackgap for resource limits calls,
  but uses lim_rlimit() and kern_setrlimit() instead.
- The ibcs2 compat no longer uses the stackgap for resource limits.  It
  also no longer uses the stackgap for accessing sysctl's for the
  ibcs2_sysconf() syscall but uses kernel_sysctl() instead.  As a result,
  ibcs2_sysconf() no longer needs Giant.
- The p_rlimit macro no longer exists.

Submitted by:	mtm (mostly, I only did a few cleanups and catchups)
Tested on:	i386
Compiled on:	alpha, amd64
</content>
</entry>
<entry>
<title>Add the mlockall() and munlockall() system calls.</title>
<updated>2003-08-11T07:14:08Z</updated>
<author>
<name>Bruce M Simpson</name>
<email>bms@FreeBSD.org</email>
</author>
<published>2003-08-11T07:14:08Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=abd498aa7127b03d6c0593cdb8f8308dd65758c6'/>
<id>urn:sha1:abd498aa7127b03d6c0593cdb8f8308dd65758c6</id>
<content type='text'>
 - All those diffs to syscalls.master for each architecture *are*
   necessary. This needed clarification; the stub code generation for
   mlockall() was disabled, which would prevent applications from
   linking to this API (suggested by mux)
 - Giant has been quoshed. It is no longer held by the code, as
   the required locking has been pushed down within vm_map.c.
 - Callers must specify VM_MAP_WIRE_HOLESOK or VM_MAP_WIRE_NOHOLES
   to express their intention explicitly.
 - Inspected at the vmstat, top and vm pager sysctl stats level.
   Paging-in activity is occurring correctly, using a test harness.
 - The RES size for a process may appear to be greater than its SIZE.
   This is believed to be due to mappings of the same shared library
   page being wired twice. Further exploration is needed.
 - Believed to back out of allocations and locks correctly
   (tested with WITNESS, MUTEX_PROFILING, INVARIANTS and DIAGNOSTIC).

PR:             kern/43426, standards/54223
Reviewed by:    jake, alc
Approved by:    jake (mentor)
MFC after:	2 weeks
</content>
</entry>
<entry>
<title>Use __FBSDID().</title>
<updated>2003-06-11T23:50:51Z</updated>
<author>
<name>David E. O'Brien</name>
<email>obrien@FreeBSD.org</email>
</author>
<published>2003-06-11T23:50:51Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=874651b13ca70407517c7431118950d6771ef89d'/>
<id>urn:sha1:874651b13ca70407517c7431118950d6771ef89d</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Use the fields in the sysentvec and in the vm map header in place of the</title>
<updated>2002-09-21T22:07:17Z</updated>
<author>
<name>Jake Burkholder</name>
<email>jake@FreeBSD.org</email>
</author>
<published>2002-09-21T22:07:17Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=05ba50f5228f950b85f7c086f5a139b3b556e410'/>
<id>urn:sha1:05ba50f5228f950b85f7c086f5a139b3b556e410</id>
<content type='text'>
constants VM_MIN_ADDRESS, VM_MAXUSER_ADDRESS, USRSTACK and PS_STRINGS.
This is mainly so that they can be variable even for the native abi, based
on different machine types.  Get stack protections from the sysentvec too.
This makes it trivial to map the stack non-executable for certain abis, on
machines that support it.
</content>
</entry>
<entry>
<title>Part I of RLIMIT_VMEM implementation.  Implement core functionality for</title>
<updated>2002-06-26T00:29:28Z</updated>
<author>
<name>Matthew Dillon</name>
<email>dillon@FreeBSD.org</email>
</author>
<published>2002-06-26T00:29:28Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=070f64fe6fe1f0f56fdd124c25a6784ad85c1bde'/>
<id>urn:sha1:070f64fe6fe1f0f56fdd124c25a6784ad85c1bde</id>
<content type='text'>
a new resource limit that covers a process's entire VM space, including
mmap()'d space.

(Part II will be additional code to check RLIMIT_VMEM during exec() but it
needs more fleshing out).

PR:		kern/18209
Submitted by:	Andrey Alekseyev &lt;uitm@zenon.net&gt;, Dmitry Kim &lt;jason@nichego.net&gt;
MFC after:	7 days
</content>
</entry>
<entry>
<title> o Remove an incorrect cast from obreak().  This cast would,</title>
<updated>2002-06-20T18:38:28Z</updated>
<author>
<name>Alan Cox</name>
<email>alc@FreeBSD.org</email>
</author>
<published>2002-06-20T18:38:28Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=3d66f1384ef146604331689e057fd0033fba593b'/>
<id>urn:sha1:3d66f1384ef146604331689e057fd0033fba593b</id>
<content type='text'>
   for example, break an sbrk(&gt;=4GB) on 64-bit architectures
   even if the resource limit allowed it.
 o Correct an off-by-one error.
 o Correct a spelling error in a comment.
 o Reorder an &amp;&amp; expression so that the commonly FALSE expression
   comes first.

Submitted by:	bde (bullets 1 and 2)
</content>
</entry>
<entry>
<title> o Acquire and release the vm_map lock instead of Giant in obreak().</title>
<updated>2002-06-20T02:04:55Z</updated>
<author>
<name>Alan Cox</name>
<email>alc@FreeBSD.org</email>
</author>
<published>2002-06-20T02:04:55Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=5375be186122b0b85965b73e29a4ff39969f6991'/>
<id>urn:sha1:5375be186122b0b85965b73e29a4ff39969f6991</id>
<content type='text'>
   Consequently, use vm_map_insert() and vm_map_delete(), which expect
   the vm_map to be locked, instead of vm_map_find() and vm_map_remove(),
   which do not.
</content>
</entry>
<entry>
<title>Garbage-collect options ACPI_NO_ENABLE_ON_BOOT, AML_DEBUG, BLEED,</title>
<updated>2002-02-15T13:16:11Z</updated>
<author>
<name>Bruce Evans</name>
<email>bde@FreeBSD.org</email>
</author>
<published>2002-02-15T13:16:11Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=1e92845e1b7fb7895d0bb747d20d7a74853b5dd2'/>
<id>urn:sha1:1e92845e1b7fb7895d0bb747d20d7a74853b5dd2</id>
<content type='text'>
DEVICE_SYSCTLS, KEY, LOUTB, NFS_MUIDHASHSIZ, NFS_UIDHASHSIZ, PCI_QUIET
and SIMPLELOCK_DEBUG.
</content>
</entry>
</feed>
