From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jonathan Williams Newsgroups: gmane.os.tru64.managers Subject: SUMMARY: Sleeping Processes Date: Tue, 28 Jun 2005 11:24:09 -0400 Message-ID: References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1119971959 32586 80.91.229.2 (28 Jun 2005 15:19:19 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 28 Jun 2005 15:19:19 +0000 (UTC) Original-X-From: tru64-unix-managers-owner-gotm-tru64-unix-managers=m.gmane.org@sws1.ctd.ornl.gov Tue Jun 28 17:19:16 2005 Return-path: Original-Received: from sws1.ornl.gov ([160.91.1.101]) by ciao.gmane.org with smtp (Exim 4.43) id 1DnHqK-0001ja-Iz for gotm-tru64-unix-managers@gmane.org; Tue, 28 Jun 2005 17:17:44 +0200 Original-Received: (qmail 1180 invoked by uid 49509); 28 Jun 2005 15:24:42 -0000 Original-Sender: tru64-unix-managers-owner@ornl.gov Original-Followup-To: poster Precedence: bulk Original-Received: (qmail 1101 invoked by uid 49501); 28 Jun 2005 15:24:41 -0000 Original-Received: from 160.91.86.17 by sws1 (envelope-from , uid 49491) with qmail-scanner-1.25 (clamdscan: 0.83/743. spamassassin: 3.0.2. Clear:RC:0(160.91.86.17):SA:0(-2.6/5.0):. Processed in 0.465253 secs); 28 Jun 2005 15:24:41 -0000 X-Spam-Status: No, hits=-2.6 required=5.0 Original-Received: from emroute2.cind.ornl.gov (160.91.86.17) by sws1.ornl.gov with SMTP; 28 Jun 2005 15:24:41 -0000 Original-Received: from emroute2.cind.ornl.gov (LOCALHOST [127.0.0.1]) by emroute2.cind.ornl.gov (PMDF V6.2-X27 #30899) with ESMTP id <0IIS008G4W53WH@emroute2.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Tue, 28 Jun 2005 11:24:39 -0400 (EDT) Original-Received: from VIRUSCAN-DAEMON.emroute2.cind.ornl.gov by emroute2.cind.ornl.gov (PMDF V6.2-X27 #30899) id <0IIS00602W4J7J@emroute2.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Tue, 28 Jun 2005 11:24:28 -0400 (EDT) Original-Received: from mailhost.shubertorg.com (mailhost.shubertorg.com [207.246.208.40]) by emroute2.cind.ornl.gov (PMDF V6.2-X27 #30899) with ESMTP id <0IIS00MFGW4GDZ@emroute2.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Tue, 28 Jun 2005 11:24:19 -0400 (EDT) Original-Received: from JonathanwXP [207.246.218.205] by mailhost.shubertorg.com (SMTPD-8.20) id ABA005F4; Tue, 28 Jun 2005 11:24:16 -0400 In-reply-to: Original-To: Jonathan Williams , tru64-unix-managers@ornl.gov X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) Importance: Normal X-Priority: 3 (Normal) X-MSMail-priority: Normal X-Envelope-From: X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on email.cind.ornl.gov X-Spam-Level: X-Qmail-Scanner-MOVED-X-Spam-Status: No, score=-1.0 required=5.0 tests=BAYES_00 autolearn=ham version=3.0.4 Xref: news.gmane.org gmane.os.tru64.managers:8391 X-Report-Spam: http://spam.gmane.org/gmane.os.tru64.managers:8391 Ok. I got two responses, and I don't think I need to read any more. The answer is...the way UNIX does it, is the only efficient way to do it. And I won't gain anything by changing the way UNIX does it. Thanks for Dr Thomas Blinn and Marc Baudoin. :) -Jonathan Williams -----Original Message----- From: tru64-unix-managers-owner@ornl.gov [mailto:tru64-unix-managers-owner@ornl.gov]On Behalf Of Jonathan Williams Sent: Tuesday, June 28, 2005 9:55 AM To: tru64-unix-managers@ornl.gov Subject: Sleeping Processes We had some problems with our new GS1280 last week, and since then the question of system tuning in general has come up. One of the questions came up was about our application server. The Application server is an ES80, running Tru64 Unix 5.1b, pk4. It runs a proprietary application that consists of many (well...about 50 or so) individual programs that are each attached to their own queue. They basically just wait around until something is in their queue, then do it real quick, and go back to waiting. While the queues are waiting, the processes are in a SLEEP mode (going by top, and ps), and then switch to running for a bit while they are doing something, and then back to sleeping. The question is, is there any amount of time involved in switching from sleeping to running. One of the programmers is thinking there is a way to have the processes in a RUNNING state all the time--I'm not sure if that's a UNIX thing, or a programming thing. But whether we want to change it depends on whether or not there is any time (anything more than .1 sec) wasted by switching from sleeping to running. Or is it like a millionth of a second or something negligible, in which case we don't really care. So is this something people know? Or something I can measure myself? Any help, or pointers in the right direction would be greatly appreciated. TIA -Jonathan Williams