From 35a5a3587fd94b666239c157d3722745250ccbd7 Mon Sep 17 00:00:00 2001 From: Jonathan Adams Date: Mon, 23 Nov 2009 15:29:44 -0800 Subject: 6881015 ZFS write activity prevents other threads from running in a timely manner 6899867 mstate_thread_onproc_time() doesn't account for runnable time correctly PSARC/2009/615 System Duty Cycle Scheduling Class and ZFS IO Observability --- usr/src/uts/common/sys/class.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'usr/src/uts/common/sys/class.h') diff --git a/usr/src/uts/common/sys/class.h b/usr/src/uts/common/sys/class.h index 9ec496fdbb..8487942ea2 100644 --- a/usr/src/uts/common/sys/class.h +++ b/usr/src/uts/common/sys/class.h @@ -20,7 +20,7 @@ */ /* - * Copyright 2008 Sun Microsystems, Inc. All rights reserved. + * Copyright 2009 Sun Microsystems, Inc. All rights reserved. * Use is subject to license terms. */ @@ -30,8 +30,6 @@ #ifndef _SYS_CLASS_H #define _SYS_CLASS_H -#pragma ident "%Z%%M% %I% %E% SMI" - #include #include #include @@ -119,6 +117,8 @@ typedef struct sclass { #ifdef _KERNEL +#define CLASS_KERNEL(cid) ((cid) == syscid || (cid) == sysdccid) + extern int nclass; /* number of configured scheduling classes */ extern char *defaultclass; /* default class for newproc'd processes */ extern struct sclass sclass[]; /* the class table */ @@ -127,6 +127,7 @@ extern int loaded_classes; /* number of classes loaded */ extern pri_t minclsyspri; extern id_t syscid; /* system scheduling class ID */ +extern id_t sysdccid; /* system duty-cycle scheduling class ID */ extern id_t defaultcid; /* "default" class id; see dispadmin(1M) */ extern int alloc_cid(char *, id_t *); -- cgit v1.2.3