Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What are the common commands in Solaris?

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article shows you what Solaris commands are commonly used, which are concise and easy to understand, which will definitely brighten your eyes. I hope you can get something through the detailed introduction of this article.

-View processes and loads

Prstat

-View io and cpu

Iostat 2

-View memory, swap space, cpu

Vmstat 2

-View the operating system version

Showrev 、 / etc/release

-View the number of bits

Isainfo-v

-View system configuration information

Prtdiag-v

-Statistics of cpu utilization

Sar-u 2 30

-View process information

Prstat-a

-change memory limit parameters

Projmod-U oracle-K "project.max-shm-memory= (priv,16380MB,deny)" user.oracle

-View restrictions

Solaris10 can be viewed before / etc/system

After solaris10, you can view the changes as follows

Prctl-I process $$

Or ulimit-a.

Or prctl-I project user.oracle

-- memory--

1. Query the total memory

-bash-3.00# prtconf | grep Memory

The result is:

Memory size: 28672 Megabytes

That is, the total memory is 28672m.

2. Query the remaining memory and total memory

-bash-3.00# echo ":: memstat" | mdb-k

The result is:

Page Summary Pages MB Tot

-

Kernel 111524 871 3%

Anon 296480 2316 8

Exec and libs 20382 1591%

Page cache 66403 518.2%

Free (cachelist) 187491 1464

Free (freelist) 2918928 22804 81%

Total 3601208 28134

Physical 3597230 28103

That is, the remaining memory is Free (cachelist) + Free (freelist) = 24268m

Total memory is Physical=28103M

-- cpu--

1. Query the number of cpu

-bash-3.00# mpstat

The result is

CPU minf mjf xcal intr ithr csw icsw migr smtx srw syscl usr sys wt idl

0 22 0 28 27 16 22 0 1 3 0 57 00 0 100

1 100 25 46 16 34 0 1 3 0 45 00 0 100

2 6 0 12 39 13 22 0 13 0 34 00 0 100

3 22 0 11 212 8 46 0 1 3 0 53 00 0 100

16 5 0 16 23 13 18 00 2 0 32 00 0 100

17 4 0 10 46 20 29 0 1 3 0 27 00 0 100

18 4 0 13 23 12 19 00 3 0 28 00 0 100

19 5 0 10 39 7 35 0 1 2 0 28 00 0 100

Return 8 lines indicating that there are 8 cpu

2. Check the main frequency of cpu.

-bash-3.00# psrinfo-v

-- swap--

Output of 'swap-s' is:

Total: 2514952k bytes allocated + 202368k reserved = 2717320k used, 7021424k available

Swap Utilization (%) is:

(2717320 / (27173207021424)) * 100

= 27.9%

But actually Total virtual swap = RAM backed swap + Disk backed swap

Swap-l report disk backed swap usage. It does not report virtual swap usage.

Physical disk swap configured:

# / usr/sbin/swap-l

Swapfile dev swaplo blocks free

/ dev/zvol/dsk/uppool/swap 181,3 8 163839992 163839992

Total Disk backed swap: 163839992 x 512 = 78G

What are the common commands in Solaris? have you learned any knowledge or skills? If you want to learn more skills or enrich your knowledge reserve, you are welcome to follow the industry information channel.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report