From owner-freebsd-current@FreeBSD.ORG Sun Mar 20 06:51:24 2005 Return-Path: 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 95CFF16A4CE for ; Sun, 20 Mar 2005 06:51:24 +0000 (GMT) Received: from rosebud.otenet.gr (rosebud.otenet.gr [195.170.0.26]) by mx1.FreeBSD.org (Postfix) with ESMTP id B462143D31 for ; Sun, 20 Mar 2005 06:51:23 +0000 (GMT) (envelope-from keramida@freebsd.org) Received: from gothmog.gr (patr530-a236.otenet.gr [212.205.215.236]) j2K6onUt022731 for ; Sun, 20 Mar 2005 08:50:50 +0200 Received: from gothmog.gr (gothmog [127.0.0.1]) by gothmog.gr (8.13.3/8.13.3) with ESMTP id j2K6pKnD016071 for ; Sun, 20 Mar 2005 08:51:20 +0200 (EET) (envelope-from keramida@freebsd.org) Received: (from giorgos@localhost) by gothmog.gr (8.13.3/8.13.3/Submit) id j2K6pJsq016066 for freebsd-current@freebsd.org; Sun, 20 Mar 2005 08:51:19 +0200 (EET) (envelope-from keramida@freebsd.org) Date: Sun, 20 Mar 2005 08:51:19 +0200 From: Giorgos Keramidas To: freebsd-current@freebsd.org Message-ID: <20050320065119.GA3676@gothmog.gr> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Subject: Pthreads in 6.0-CURRENT X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 20 Mar 2005 06:51:24 -0000 I recently had to stress test a program that uses several thousands of threads, and one of the machines I ran it was a uniprocessor Celeron running at 1800 MHz with 512 MB of physical memory; the system I use as a workstation at home. During one of the tests, that used more than 12000 threads filling up queues that were consumed by 4-10 queue runner threads, the following appeared in top's output: PID USERNAME PRI NICE SIZE RES STATE TIME WCPU CPU COMMAND 10244 giorgos 129 0 348M 43500K RUN 0:51 10.84% 10.79% many At the same time, a buildworld was running in the background, I was chatting on IRC with some friends, and in general continued to work on my workstation as usual -- without any noticeable decrease in the perceived performance of the system, despite the fact that a program suddenly fired up so many threads and did its work. Pretty impressive :-) Many thanks to all the people who have been working so far to make thread support so cool in FreeBSD 6.0-CURRENT! - Giorgos