From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 11369 invoked from network); 18 Jan 2000 23:14:43 -0000 Received: from mail.redhat.com (199.183.24.239) by lists.redhat.com with SMTP; 18 Jan 2000 23:14:43 -0000 Received: from server07.icaen.uiowa.edu (root@server07.icaen.uiowa.edu [128.255.17.47]) by mail.redhat.com (8.8.7/8.8.7) with ESMTP id SAA01495 for ; Tue, 18 Jan 2000 18:14:43 -0500 Received: from server01.icaen.uiowa.edu (server01.icaen.uiowa.edu [128.255.17.41]) by server07.icaen.uiowa.edu (8.8.7/8.7.1) with ESMTP id RAA05033 for ; Tue, 18 Jan 2000 17:14:41 -0600 (CST) Received: from server11.icaen.uiowa.edu (root@server11.icaen.uiowa.edu [128.255.17.51]) by server01.icaen.uiowa.edu (8.8.7/8.7.1) with ESMTP id RAA00626 for ; Tue, 18 Jan 2000 17:14:41 -0600 (CST) Received: from cobra.eng.uiowa.edu (bcarlson@cobra.eng.uiowa.edu [128.255.23.124]) by server11.icaen.uiowa.edu (8.8.7/client-6.6) with ESMTP id RAA11929 for ; Tue, 18 Jan 2000 17:14:40 -0600 (CST) Organization: Iowa Computer Aided Engineering Network, University of Iowa Date: Tue, 18 Jan 2000 17:14:39 -0600 (CST) From: Blake Carlson Sender: bcarlson@cobra.eng.uiowa.edu To: axp-list@redhat.com Subject: Force app to use single CPU Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Hello all - I have an imaging app (uses ~500MB of memory) running on my DP264 (Linux 2.2.10) that seems to spend a lot of time context switching between the processors (judging from xosview). If I change the priority of the app, I can get it to stick on one processor longer before context switching out (no big surprise there). Would I see a _significant_ difference in performance if I was able to force the app to stick to one CPU all of the time (forcing all other processes to run on the second processor)? Could I get two copies of the program running at the same time to stick to a single CPU and not context switch? (runtime for the program is about 1 hour) What is the best way to do this. 'nice -20 app' as root? Thanks for your help - Blake Carlson blake-carlson@uiowa.edu College of Electrical & Computer Engineering University of Iowa