Print this page
re #13613 rb4516 Tunables needs volatile keyword
*** 20,29 ****
--- 20,32 ----
*/
/*
* Copyright 2009 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
+ /*
+ * Copyright 2013 Nexenta Systems, Inc. All rights reserved.
+ */
/* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */
/* All Rights Reserved */
/*
*** 73,100 ****
* algorithm. They are initialized to 0, and then computed at boot time
* based on the size of the system. If they are patched non-zero in
* a loaded vmunix they are left alone and may thus be changed per system
* using adb on the loaded system.
*/
! pgcnt_t slowscan = 0;
! pgcnt_t fastscan = 0;
! static pgcnt_t handspreadpages = 0;
static int loopfraction = 2;
static pgcnt_t looppages;
! static int min_percent_cpu = 4;
static int max_percent_cpu = 80;
static pgcnt_t maxfastscan = 0;
static pgcnt_t maxslowscan = 100;
! pgcnt_t maxpgio = 0;
! pgcnt_t minfree = 0;
! pgcnt_t desfree = 0;
! pgcnt_t lotsfree = 0;
pgcnt_t needfree = 0;
! pgcnt_t throttlefree = 0;
! pgcnt_t pageout_reserve = 0;
pgcnt_t deficit;
pgcnt_t nscan;
pgcnt_t desscan;
--- 76,103 ----
* algorithm. They are initialized to 0, and then computed at boot time
* based on the size of the system. If they are patched non-zero in
* a loaded vmunix they are left alone and may thus be changed per system
* using adb on the loaded system.
*/
! volatile pgcnt_t slowscan = 0;
! volatile pgcnt_t fastscan = 0;
! volatile pgcnt_t handspreadpages = 0;
static int loopfraction = 2;
static pgcnt_t looppages;
! volatile int min_percent_cpu = 4;
static int max_percent_cpu = 80;
static pgcnt_t maxfastscan = 0;
static pgcnt_t maxslowscan = 100;
! volatile pgcnt_t maxpgio = 0;
! volatile pgcnt_t minfree = 0;
! volatile pgcnt_t desfree = 0;
! volatile pgcnt_t lotsfree = 0;
pgcnt_t needfree = 0;
! volatile pgcnt_t throttlefree = 0;
! volatile pgcnt_t pageout_reserve = 0;
pgcnt_t deficit;
pgcnt_t nscan;
pgcnt_t desscan;