From owner-freebsd-questions@FreeBSD.ORG Mon Oct 24 17:13:34 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7CAD016A41F for ; Mon, 24 Oct 2005 17:13:34 +0000 (GMT) (envelope-from plcplc@gmail.com) Received: from qproxy.gmail.com (qproxy.gmail.com [72.14.204.196]) by mx1.FreeBSD.org (Postfix) with ESMTP id 95D5B43D46 for ; Mon, 24 Oct 2005 17:13:30 +0000 (GMT) (envelope-from plcplc@gmail.com) Received: by qproxy.gmail.com with SMTP id a39so286743qbd for ; Mon, 24 Oct 2005 10:13:29 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:from:reply-to:to:subject:date:user-agent:references:in-reply-to:mime-version:content-disposition:cc:content-type:content-transfer-encoding:message-id; b=Z855Uv8HPHIK/SOS+FadDYYIGBzZLDA+tFpXIZPzx9oV2eqSPSB7qIoK4Fw931vEUIMiy+aBIGwKMedsAFxLmYhHwkGRPFyXaU8U+2O42XyWV/zx+pezE3wJwPXEWCQu0HZkSGZBnRASrFcxSREfJSQ/VN8mEhNoespjeoVyuYY= Received: by 10.65.155.12 with SMTP id h12mr560287qbo; Mon, 24 Oct 2005 10:13:29 -0700 (PDT) Received: from ?10.0.1.254? ( [80.164.23.11]) by mx.gmail.com with ESMTP id e18sm320986qbe.2005.10.24.10.13.27; Mon, 24 Oct 2005 10:13:29 -0700 (PDT) From: Philip Lykke Carlsen To: cswinger@mac.com Date: Mon, 24 Oct 2005 19:13:25 +0200 User-Agent: KMail/1.8.2 References: <200510231749.48212.plcplc@gmail.com> <435BB8FC.8030601@mac.com> In-Reply-To: <435BB8FC.8030601@mac.com> MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <200510241913.25396.plcplc@gmail.com> Cc: freebsd-questions@freebsd.org Subject: Re: Preloading of shared libraries X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: plcplc@gmail.com List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 24 Oct 2005 17:13:34 -0000 Sunday 23 October 2005 18:23 skrev du: > Philip Lykke Carlsen wrote: > > Hey.. I wondered if it was possible to load a selection of shared > > libraies into the cache at boot time.. I figure that it would speed up > > starting things.. like the KDE login manager for instance.. > > > > hm.. is this possible? .. and if so.. would it speed up the process of > > starting stuff at all?.. > > Sort of. At one point, you could set the sticky bit on files as a hint to > the pager to try and keep them in memory, which was intended for things > like /bin/sh, cron, login, and maybe libc. aah.. I always wondered what the sticky bit actually did.. > > Whether it would help in your particular case is harder to say, how much > RAM does your machine have, and what kind of CPU? Some people believe that > KDE requires excessive resources for what it does, consider fluxbox or > something more lightweight... No problem when when it comes to resources.. ( I have an ordinary x86 2,6 GHz Celeron CPU and 768 mb DDR RAM ) I tried fluxbox once.. didn't like it though.. but that's just a matter of taste.. just thought I'd try KDE as a change as I've previously only used wm's like EvilWM, LWM, TWM an Co.. .. so, there isn't a program that doesn't do anything but load a shared object into memory and then close? .. hm.. if all it takes is to call open() for a sticky-bit file to stay in memory, I'd gladly write that program myself :-)