<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: sort -rnk2 usage way ans sz size in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/sort-rnk2-usage-way-ans-sz-size/m-p/3661592#M20356</link>
    <description>when you use sort -kX, you are defining the position of the sort key (text delineated by blank characters). &lt;BR /&gt;Using sort -rnk2 you sort ps output by PID in reverse order.&lt;BR /&gt;&lt;BR /&gt;The SZ field displays the size of the process in memory. The value of the field is the number of pages the process is occupying. On both the Linux and HP machines, a page is 4,096 bytes. &lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Sergejs&lt;BR /&gt;</description>
    <pubDate>Tue, 01 Nov 2005 04:21:17 GMT</pubDate>
    <dc:creator>Sergejs Svitnevs</dc:creator>
    <dc:date>2005-11-01T04:21:17Z</dc:date>
    <item>
      <title>sort -rnk2 usage way ans sz size</title>
      <link>https://community.hpe.com/t5/operating-system-linux/sort-rnk2-usage-way-ans-sz-size/m-p/3661591#M20355</link>
      <description>I test two command(sort -rnk2 and sort -rn)&lt;BR /&gt;I want to know how different from &lt;BR /&gt;and I want to know how do I understand sz size. is it kylobytes?&lt;BR /&gt;root@:/]# UNIX95= ps -e -o ruser,sz,pid,args|sort -rn| head -10&lt;BR /&gt;root     2628  1320 /opt/perf/bin/midaemon&lt;BR /&gt;root     1587  1190 /opt/wbem/sbin/cimserver&lt;BR /&gt;root      918  1351 /opt/perf/bin/scopeux&lt;BR /&gt;root      715  1621 /opt/perf/bin/rep_server -t SCOPE /var/opt/perf/datafiles/loggl&lt;BR /&gt;root      658  1452 /opt/VRTSob/bin/vxsvc -r /opt/VRTSob/config/Registry&lt;BR /&gt;root      532  1363 /usr/sbin/swagentd -r&lt;BR /&gt;root      526  1187 /opt/dce/sbin/rpcd&lt;BR /&gt;root      455  1105 /usr/sbin/snmpdm&lt;BR /&gt;root      453  1624 /opt/perf/bin/alarmgen -svr 1623 -t alarmgen /var/opt/perf/data&lt;BR /&gt;root      442 24416 sshd: oracle@1&lt;BR /&gt;----------------------------------------------&lt;BR /&gt;root@:/]# UNIX95= ps -e -o ruser,sz,pid,args|sort -rnk2| head -10&lt;BR /&gt;oracle   31820  2473 ora_arc1_CDR&lt;BR /&gt;oracle   31820  2471 ora_arc0_CDR&lt;BR /&gt;oracle   31820  2463 ora_lgwr_CDR&lt;BR /&gt;oracle   30540  2461 ora_dbw1_CDR&lt;BR /&gt;oracle   30540  2459 ora_dbw0_CDR&lt;BR /&gt;oracle   30472  2457 ora_pmon_CDR&lt;BR /&gt;oracle   30320 24753 oracleCDR (LOCAL=NO)&lt;BR /&gt;oracle   30320 22939 oracleCDR (LOCAL=NO)&lt;BR /&gt;oracle   30304 22941 oracleCDR (LOCAL=NO)&lt;BR /&gt;oracle   30304 22651 oracleCDR (LOCAL=NO)&lt;BR /&gt;</description>
      <pubDate>Tue, 01 Nov 2005 02:27:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/sort-rnk2-usage-way-ans-sz-size/m-p/3661591#M20355</guid>
      <dc:creator>???_185</dc:creator>
      <dc:date>2005-11-01T02:27:55Z</dc:date>
    </item>
    <item>
      <title>Re: sort -rnk2 usage way ans sz size</title>
      <link>https://community.hpe.com/t5/operating-system-linux/sort-rnk2-usage-way-ans-sz-size/m-p/3661592#M20356</link>
      <description>when you use sort -kX, you are defining the position of the sort key (text delineated by blank characters). &lt;BR /&gt;Using sort -rnk2 you sort ps output by PID in reverse order.&lt;BR /&gt;&lt;BR /&gt;The SZ field displays the size of the process in memory. The value of the field is the number of pages the process is occupying. On both the Linux and HP machines, a page is 4,096 bytes. &lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Sergejs&lt;BR /&gt;</description>
      <pubDate>Tue, 01 Nov 2005 04:21:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/sort-rnk2-usage-way-ans-sz-size/m-p/3661592#M20356</guid>
      <dc:creator>Sergejs Svitnevs</dc:creator>
      <dc:date>2005-11-01T04:21:17Z</dc:date>
    </item>
    <item>
      <title>Re: sort -rnk2 usage way ans sz size</title>
      <link>https://community.hpe.com/t5/operating-system-linux/sort-rnk2-usage-way-ans-sz-size/m-p/3661593#M20357</link>
      <description>I had compared glance and ps due to memory size.&lt;BR /&gt;first of all,glance is like this.&lt;BR /&gt;&lt;BR /&gt;Resources PID: 10683, oracleSTBYDB   PPID:     1 euid:   200 User: oracle&lt;BR /&gt;--------------------------------------------------------------------------------&lt;BR /&gt;CPU Usage (util):      0.0 Log Reads :      0 Wait Reason    :    STRMS&lt;BR /&gt;User/Nice/RT CPU:      0.0 Log Writes:      2 Total RSS/VSS  :100.4mb/112.1mb&lt;BR /&gt;System CPU      :      0.0 Phy Reads :      1 Traps / Vfaults:      0/      0&lt;BR /&gt;Interrupt CPU   :      0.0 Phy Writes:     34 Faults Mem/Disk:      0/      0&lt;BR /&gt;Cont Switch CPU :      0.0 FS Reads  :      1 Deactivations  :      0&lt;BR /&gt;Scheduler       :     HPUX FS Writes :     34 Forks &amp;amp; Vforks :      0&lt;BR /&gt;&lt;BR /&gt;Second,ps command like this.&lt;BR /&gt;&lt;BR /&gt;root@stby:/]# UNIX95= ps -e -o ruser,sz,vsz,pid,ppid,args|sort -rnk2|head -5&lt;BR /&gt;oracle   36940  147760 19792     1 oracleSTBYDB (LOCAL=NO)&lt;BR /&gt;oracle   36940  147760 10683     1 oracleSTBYDB (LOCAL=NO)&lt;BR /&gt;oracle   35916  147760  8495     1 ora_mrp0_STBYDB&lt;BR /&gt;oracle   31820  131376 19794     1 oracleSTBYDB (LOCAL=NO)&lt;BR /&gt;oracle   31820  131376 10956     1 oracleSTBYDB (LOCAL=NO)&lt;BR /&gt;&lt;BR /&gt;same pid present differently between sz and rss , vsz and VSS.&lt;BR /&gt;&lt;BR /&gt;How can I understand this?&lt;BR /&gt;&lt;BR /&gt;Thanks.</description>
      <pubDate>Wed, 02 Nov 2005 01:17:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/sort-rnk2-usage-way-ans-sz-size/m-p/3661593#M20357</guid>
      <dc:creator>???_185</dc:creator>
      <dc:date>2005-11-02T01:17:19Z</dc:date>
    </item>
    <item>
      <title>Re: sort -rnk2 usage way ans sz size</title>
      <link>https://community.hpe.com/t5/operating-system-linux/sort-rnk2-usage-way-ans-sz-size/m-p/3661594#M20358</link>
      <description>The sz size is in buff pages. One buffer is of 4096bytes size.&lt;BR /&gt;&lt;BR /&gt;-rnk2 --&amp;gt; will sort on numerical second column and reverse the order.&lt;BR /&gt;-rn --&amp;gt; will sort on first numerical column and reverse the order.</description>
      <pubDate>Wed, 02 Nov 2005 01:25:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/sort-rnk2-usage-way-ans-sz-size/m-p/3661594#M20358</guid>
      <dc:creator>RAC_1</dc:creator>
      <dc:date>2005-11-02T01:25:01Z</dc:date>
    </item>
  </channel>
</rss>

