From owner-freebsd-questions Sun Dec 12 11: 8:12 1999 Delivered-To: freebsd-questions@freebsd.org Received: from alpha.pit.adelphia.net (alpha.pit.adelphia.net [24.48.44.2]) by hub.freebsd.org (Postfix) with ESMTP id 01C3614DD8 for ; Sun, 12 Dec 1999 11:08:10 -0800 (PST) (envelope-from evstiounin@adelphia.net) Received: from evstiouninadelphia (surf71-185.pit.adelphia.net [24.48.53.185]) by alpha.pit.adelphia.net (8.9.2/8.9.2) with SMTP id OAA09772; Sun, 12 Dec 1999 14:07:18 -0500 (EST) Message-ID: <003101bf44d4$2251b980$b9353018@evstiouninadelphia.net.pit.adelphia.net> From: "Mikhail Evstiounin" To: "Artem Koutchine" , Subject: Re: questions about file locking and memory usage Date: Sun, 12 Dec 1999 14:07:26 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit 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 Regarding 1 - there was a pretty big discussion either here or in hacckers list and some people, including DG as chief architect of FreeBSD, provided tons of usefull information - you can find it in the archive. -----Original Message----- From: Artem Koutchine To: questions@freebsd.org Date: Sunday, December 12, 1999 12:03 PM Subject: questions about file locking and memory usage >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 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message