If it is swapped out it will have nearly zero pages in memory.
Execute prstat or ps and check the RSS. The PIDs you are interested in
will have near zero RSS.

arwen:alias my_ps
my_ps='ps -e -o user,pid,rss,class,projid,comm'

my_ps | sort -k 3 | less

    root     3    0  SYS     0 fsflush
    root     2    0  SYS     0 pageout
    root     0    0  SYS     0 sched
    root   488  764   TS     0 /usr/lib/utmpd
  rw8775  2815  816   IA   100 sleep
    root   541  828   TS     0 /usr/sadm/lib/smc/bin/smcboot
    root   540  860   TS     0 /usr/sadm/lib/smc/bin/smcboot
  rw8775  2733  948   IA   100 sh
  rw8775  1799  952   IA   100 /bin/sh
  rw8775  1800  952   IA   100 /bin/sh
    root   388  960   TS     0 /usr/lib/inet/in.ndpd
  rw8775  2817  976   IA   100 sort

rick

On Tue, Jul 01, 2008 at 01:50:45AM -0700, Sebastian Fontaine wrote:
> Date: Tue, 01 Jul 2008 01:50:45 -0700 (PDT)
> From: Sebastian Fontaine <[EMAIL PROTECTED]>
> Subject: [perf-discuss] find swapping prozess PID
> To: perf-discuss@opensolaris.org
> Errors-to: [EMAIL PROTECTED]
> Precedence: list
> X-BeenThere: perf-discuss@opensolaris.org
> Delivered-to: perf-discuss@opensolaris.org
> X-PMX-Version: 5.4.1.325704
> X-Brightmail-Tracker: AAAAAA==
> X-Spam-Checker-Version: SpamAssassin 3.2.3 (2007-08-08) on
>       oss-mail1.opensolaris.org
> X-Original-To: perf-discuss@opensolaris.org
> X-OpenSolaris-URL:
>  http://www.opensolaris.org/jive/message.jspa?messageID=254180&tstart=0#254180
> X-Antispam: No, score=0.0/5.0, scanned in 0.074sec at (localhost [127.0.0.1])
>       by smf-spamd v1.3.1 - http://smfs.sf.net/
> X-Mailman-Version: 2.1.9
> List-Post: <mailto:perf-discuss@opensolaris.org>
> List-Subscribe: <http://mail.opensolaris.org/mailman/listinfo/perf-discuss>,
>       <mailto:[EMAIL PROTECTED]>
> List-Unsubscribe: <http://mail.opensolaris.org/mailman/listinfo/perf-discuss>,
>       <mailto:[EMAIL PROTECTED]>
> List-Archive: <http://mail.opensolaris.org/pipermail/perf-discuss>
> List-Help: <mailto:[EMAIL PROTECTED]>
> List-Id: Performance General Discussion <perf-discuss.opensolaris.org>
> X-Spam-Status: No, score=0.5 required=5.0 tests=AWL,RDNS_NONE autolearn=no
>       version=3.2.3
> X-Spam-Level:
> 
> Hi,
> 
> on my 1280 with sol10 u4 last patched on february I had 60 swapping Prozesses 
> found with vmstat.
> By restarting some prozesses like apache, rpcbind etc I could eliminate 50%. 
> Now I have still some left:
> 
> >vmstat 1 5
>  kthr      memory            page            disk          faults      cpu
>  r b w   swap  free  re  mf pi po fr de sr m1 m1 m1 m2   in   sy   cs us sy id
>  0 0 62 20805336 5742656 1008 2382 4419 79 88 0 65 6 5 5 0 2343 12800 3642 7 
> 6 87
>  0 0 [b]26[/b] 22054400 5503360 296 703 8 8 8 0 0  0  0  0  0 1008 6310 2273  
> 2  7 91
>  0 0 [b]26[/b] 22053128 5500496 0 2 0  0  0  0  0  0  0  0  0  654 2673 1276  
> 2  1 97
>  0 0 [b]26[/b] 22055576 5503752 52 86 412 0 0 0 0  0  0  0  0 1177 6516 2981  
> 1  2 97
>  0 0 [b]26[/b] 22056928 5503320 139 127 651 0 0 0 0 0 0  0  0 2763 18889 7468 
> 3  3 94
> 
> 
> In my opinion it is very strange that those 26 Prozesses are there now for 
> weeks.
> And there is much memory free:
> 
> Memory: 24G phys mem, 5343M free mem, 20G total swap, 19G free swap
> 
> Has anybody an Idea how I could identify the PID of the swapping prozesses?
> I found a tool kalled dmstat.sh which is using dtrace to gather more 
> information, but it waits for a PID as an option.
> So, if I have several Prozesses swapping, shown by vmstat (see obove) how can 
> I get the related PID's?
> 
> Thanks a lot in advance
> Sebastian Fontaine
>  
>  
> This message posted from opensolaris.org
> _______________________________________________
> perf-discuss mailing list
> perf-discuss@opensolaris.org

-- 

Rickey C. Weisner 
Software Development and Performance Specialist 
Sun Microsystems, INC
cell phone: 615-308-1147
email: [EMAIL PROTECTED]
_______________________________________________
perf-discuss mailing list
perf-discuss@opensolaris.org

Reply via email to