Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 19 Jul 2002 15:52:03 -0700
From:      Luigi Rizzo <rizzo@icir.org>
To:        Julian Elischer <julian@elischer.org>
Cc:        current@freebsd.org
Subject:   Relations between KSE, KSEG and NCPU
Message-ID:  <20020719155202.D37800@iguana.icir.org>

next in thread | raw e-mail | index | archive | help
Hi,
I am trying to figure out what are the relations between
KSE's, KSEG and NCPU -- from the description in kern_switch.c
and in sys/proc.h I am not totally clear if:

1) a KSEG can have more KSE than NCPU;
2) a KSEG can have multiple KSE's running on different CPUS;

Also I do not follow this comment in sys/proc.h:

 * Kernel-scheduled entity group (KSEG).  The scheduler considers each KSEG to
 * be an indivisible unit from a time-sharing perspective, though each KSEG may
 * contain multiple KSEs.

Does it mean that once the scheduler picks a KSEG it will try
to place as many KSE's as it can on the available CPUs, rather
than sharing the latter between KSEG's with ready threads ?

	thanks
	luigi
----------------------------------+-----------------------------------------
 Luigi RIZZO, luigi@iet.unipi.it  . ICSI (on leave from Univ. di Pisa)
 http://www.iet.unipi.it/~luigi/  . 1947 Center St, Berkeley CA 94704
 Phone: (510) 666 2927
----------------------------------+-----------------------------------------

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020719155202.D37800>