From owner-freebsd-alpha Mon Nov 26 4:25:46 2001 Delivered-To: freebsd-alpha@freebsd.org Received: from kiste.thiemo.net (kiste.thiemo.net [193.159.181.84]) by hub.freebsd.org (Postfix) with ESMTP id A1B8C37B405 for ; Mon, 26 Nov 2001 04:25:42 -0800 (PST) Received: (from thiemo@localhost) by kiste.thiemo.net (8.9.3/8.9.3) id NAA10649 for freebsd-alpha@freebsd.org; Mon, 26 Nov 2001 13:25:38 +0100 (CET) (envelope-from nz@thiemo.net) Date: Mon, 26 Nov 2001 13:25:38 +0100 From: Thiemo Nordenholz To: freebsd-alpha@freebsd.org Subject: mprotect() takes quite long -- anyone knows this? Message-ID: <20011126132537.A10631@kiste.thiemo.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.3.9i Sender: owner-freebsd-alpha@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Moin, I run FreeBSD 4.4-RELEASE on an AXPpci33 board with 64MB of RAM. It runs quite stable, but dead slow when executing commands. After a process is running, it seems to work at normal speed (haven't really verified this, though). Investigation shows that most of the time is used up in an mprotect() system call: -=======================================================================- 74[thiemo@myg:~]> time w 1:15PM up 2 days, 12:16, 1 user, load averages: 0.04, 0.07, 0.02 USER TTY FROM LOGIN@ IDLE WHAT thiemo p0 somewhere 11:28AM - w 0.882u 0.094s 0:00.99 97.9% 29+199k 0+0io 0pf+0w then, from a "ktrace w": 77[thiemo@myg:~]> kdump -R | grep mprotect 52860 w 0.004988 CALL mprotect(0x160062000,0xc2000,0x7) 52860 w 0.000581 RET mprotect 0 52860 w 0.865540 CALL mprotect(0x160062000,0xc2000,0x5) 52860 w 0.001066 RET mprotect 0 -=======================================================================- Isn't this a bit long for a syscall? What's going on here? Defective memory? Other flaws? Just me being too impatioent? A week ago, the Alpha ran just fine under OpenBSD 2.3 (old and bah) -- but I want to make it running FreeBSD as well... If you need more information, contact me, please -- and thanks for any hints! Cheers, Thiemo -- Thiemo Nordenholz http://www.thiemo.net "Computers are great at wasting time that would be otherwise be difficult to waste." -- Cliff Stoll To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-alpha" in the body of the message