From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Wed, 8 Aug 2001 01:52:00 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Wed, 8 Aug 2001 01:51:50 -0400 Received: from atlrel7.hp.com ([192.151.27.9]:54024 "HELO atlrel7.hp.com") by vger.kernel.org with SMTP id ; Wed, 8 Aug 2001 01:51:33 -0400 Message-ID: <3B70D2A6.F0C0ACC4@india.hp.com> Date: Wed, 08 Aug 2001 11:18:23 +0530 From: Milind Organization: HP X-Mailer: Mozilla 4.7 [en] (X11; I; HP-UX B.10.20 9000/712) X-Accept-Language: en MIME-Version: 1.0 To: mark@winksmith.com Cc: linux-kernel@vger.kernel.org, blore-linux@yahoogroups.com Subject: Re: FW: [ma-linux] Info about top command required In-Reply-To: <001f01c11fca$3bfd5ec0$94604c0f@india.hp.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Hi mark , Thanks for the info. But the question really is , whether SIZE corrosponds to real memory( real text + real data + real stack) OR virtual memory(virtual text + virtual data + virtual stack) OR both???? Thanks Milind > -----Original Message----- > From: mark@winksmith.com [mailto:mark@winksmith.com] > Sent: Tuesday, August 07, 2001 6:13 PM > To: Ananth P > Cc: TUXMA (E-mail) > Subject: Re: [ma-linux] Info about top command required > > On Tue, Aug 07, 2001 at 12:55:28PM +0530, Ananth P wrote: > > I wanted to know how the 'SIZE' field in the output of 'top' command is > > calculated in linux. > > well, if i remember correctly the size field in ps results in process > size in clicks. one click is 4096 bytes. it's pretty good for relative > measurement (e.g. this one is 50 clicks, the other one is 5000 clicks). > > let's see about 'top'. reading man page > > SIZE The size of the task's code plus data plus stack > space, in kilobytes, is shown here. > > so, it sounds like kb. in addition, you might find these fields helpful > too (from the man page). > > TSIZE The code size of the task. This gives strange > values for kernel processes and is broken > for ELF processes. > > DSIZE Data + Stack size. This is broken for ELF > processes. > > -- > Mark Smith > mark@winksmith.com