From owner-freebsd-questions Sun Dec 12 9: 3: 1 1999 Delivered-To: freebsd-questions@freebsd.org Received: from gerpa.ru (gerpa.ru [212.24.32.162]) by hub.freebsd.org (Postfix) with ESMTP id 87F8B14CE1 for ; Sun, 12 Dec 1999 09:02:56 -0800 (PST) (envelope-from matrix@gerpa.ru) Received: from m1 (tsr-gw-gamma.TSR.RU [194.67.100.252]) by gerpa.ru (8.9.3/8.9.3) with SMTP id UAA25963 for ; Sun, 12 Dec 1999 20:10:42 +0300 (MSK) Message-ID: <000501bf44c3$15e05c80$0100a8c0@m1> From: "Artem Koutchine" To: Subject: questions about file locking and memory usage Date: Sun, 12 Dec 1999 20:05:10 +0300 X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 4.72.3110.1 X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hello! I'll try my luck again and see if someone finds time to answer them. I am sure many people know answers for these questions. 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. As top says SIZE: 408K, RSS: 207K 207K for an empty look??? And why total size is 408? What's wrong? I am using 3.1 and compile with 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? 3) Code sharing When i am runnning 15 perl scripts i am sure that some part of code is shared among them, but top does not tell me which part is shared. Is there any way to get this info? Artem Koutchine (Артем Кучин) Sys/Net/Web Admin, Web Designer, Programmer WWW: http://idesign.pp.ru E-Mail: matrix@chat.ru No attachments w/o my permission!!! (Не присылайте файлы без разрешения!!!) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message