Date: Mon, 13 Dec 1999 12:01:00 +0200 From: Sheldon Hearn <sheldonh@uunet.co.za> To: "Artem Koutchine" <matrix@gerpa.ru> Cc: questions@FreeBSD.ORG Subject: Re: questions about file locking and memory usage Message-ID: <28267.945079260@axl.noc.iafrica.com> In-Reply-To: Your message of "Sun, 12 Dec 1999 20:05:10 %2B0300." <000501bf44c3$15e05c80$0100a8c0@m1>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, 12 Dec 1999 20:05:10 +0300, "Artem Koutchine" wrote:
> 1) Memory usage by programs
>
> C source :
> main () {
> while(1);
> }
>
> as you see, it does nothing, nor it uses any libraries. ust an
> empty look.
Wrong. The default for cc in FreeBSD is to link against some standard
libraries. Try the -nostdlib option to cc.
> 2) How do i lock file reliably w/o depending whether it is on local
> FS or NFS.
>
> flock does not work on NFS as i know, .lock locking made in a
> normal simple way does not work either. What wouold be the
> corrent and reliable way?
Anything you do here will end up being homebrew. Locking is a known
bugbear with NFS.
> 3) Code sharing
> When i am runnning 15 perl scripts i am sure that some part
> of code is shared among them
Yes, probably the text segment of the perl interpreter.
Ciao,
Sheldon.
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?28267.945079260>
