Deleted Added
full compact
vm_glue.c (173361) vm_glue.c (177085)
1/*-
2 * Copyright (c) 1991, 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 * This code is derived from software contributed to Berkeley by
6 * The Mach Operating System project at Carnegie-Mellon University.
7 *
8 * Redistribution and use in source and binary forms, with or without

--- 43 unchanged lines hidden (view full) ---

52 * Carnegie Mellon University
53 * Pittsburgh PA 15213-3890
54 *
55 * any improvements or extensions that they make and grant Carnegie the
56 * rights to redistribute these changes.
57 */
58
59#include <sys/cdefs.h>
1/*-
2 * Copyright (c) 1991, 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 * This code is derived from software contributed to Berkeley by
6 * The Mach Operating System project at Carnegie-Mellon University.
7 *
8 * Redistribution and use in source and binary forms, with or without

--- 43 unchanged lines hidden (view full) ---

52 * Carnegie Mellon University
53 * Pittsburgh PA 15213-3890
54 *
55 * any improvements or extensions that they make and grant Carnegie the
56 * rights to redistribute these changes.
57 */
58
59#include <sys/cdefs.h>
60__FBSDID("$FreeBSD: head/sys/vm/vm_glue.c 173361 2007-11-05 11:36:16Z kib $");
60__FBSDID("$FreeBSD: head/sys/vm/vm_glue.c 177085 2008-03-12 06:31:06Z jeff $");
61
62#include "opt_vm.h"
63#include "opt_kstack_pages.h"
64#include "opt_kstack_max_pages.h"
65
66#include <sys/param.h>
67#include <sys/systm.h>
68#include <sys/limits.h>

--- 843 unchanged lines hidden (view full) ---

912 * Do not swapout a process if it is
913 * waiting on a critical event of some
914 * kind or there is a thread whose
915 * pageable memory may be accessed.
916 *
917 * This could be refined to support
918 * swapping out a thread.
919 */
61
62#include "opt_vm.h"
63#include "opt_kstack_pages.h"
64#include "opt_kstack_max_pages.h"
65
66#include <sys/param.h>
67#include <sys/systm.h>
68#include <sys/limits.h>

--- 843 unchanged lines hidden (view full) ---

912 * Do not swapout a process if it is
913 * waiting on a critical event of some
914 * kind or there is a thread whose
915 * pageable memory may be accessed.
916 *
917 * This could be refined to support
918 * swapping out a thread.
919 */
920 if ((td->td_priority) < PSOCK ||
921 !thread_safetoswapout(td)) {
920 if (!thread_safetoswapout(td)) {
922 thread_unlock(td);
923 goto nextproc;
924 }
925 /*
926 * If the system is under memory stress,
927 * or if we are swapping
928 * idle processes >= swap_idle_threshold2,
929 * then swap the process out.

--- 131 unchanged lines hidden ---
921 thread_unlock(td);
922 goto nextproc;
923 }
924 /*
925 * If the system is under memory stress,
926 * or if we are swapping
927 * idle processes >= swap_idle_threshold2,
928 * then swap the process out.

--- 131 unchanged lines hidden ---