From owner-freebsd-current Fri Jul 19 15:52:13 2002 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id ADA9737B400 for ; Fri, 19 Jul 2002 15:52:11 -0700 (PDT) Received: from iguana.icir.org (iguana.icir.org [192.150.187.36]) by mx1.FreeBSD.org (Postfix) with ESMTP id 75E0543E42 for ; Fri, 19 Jul 2002 15:52:11 -0700 (PDT) (envelope-from rizzo@iguana.icir.org) Received: (from rizzo@localhost) by iguana.icir.org (8.11.6/8.11.3) id g6JMq3838023; Fri, 19 Jul 2002 15:52:03 -0700 (PDT) (envelope-from rizzo) Date: Fri, 19 Jul 2002 15:52:03 -0700 From: Luigi Rizzo To: Julian Elischer Cc: current@freebsd.org Subject: Relations between KSE, KSEG and NCPU Message-ID: <20020719155202.D37800@iguana.icir.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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