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

How to expand swap Space by HP-UX

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

Share

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

This article to share with you is about HP-UX how to expand swap space, Xiaobian feel quite practical, so share to everyone to learn, I hope you can read this article after some harvest, not much to say, follow Xiaobian to see it.

HP-UX extended swap space

HP-UX 11.31 database server response is very slow, through the top to see that the amount of swap memory remaining is very small, so suspect that the swap memory is too small problem

home/oracle> swapinfo -s

Primary swap (for next boot) :

Primary swap for next boot was not set using swapctl()

Kb Kb Kb PCT START/ Kb

TYPE AVAIL USED FREE USED LIMIT RESERVE PRI NAME

dev 8388608 4030588 4358020 48% 0 - 1 /dev/vg00/lvol2

reserve - 3595536 -3595536

memory 15892540 6669364 9223176 42%

It was found that the machine memory was 16 gigabytes, but given the swap memory allocation 8 gigabytes, it was decided to expand the swap space.

The following method can be used to expand and simplify

hp[/]#lvcreate -L 8096 -n myswap /dev/vg00

Logical volume "/dev/vg00/myswap" has been successfully created with

character device "/dev/vg00/rmyswap".

Logical volume "/dev/vg00/myswap" has been successfully extended.

Volume Group configuration for /dev/vg00 has been saved in /etc/lvmconf/vg00.conf

then

/dev/vg00/myswap /myswap swap defaults 0 0

Write it in/etc/fstab,

activation

hp[/etc]#mkdir /myswap

hp[/etc]#swapon -a

Now look at the swap memory that has been added.

hp[/etc]#swapinfo -atm

Mb Mb Mb PCT START/ Mb

TYPE AVAIL USED FREE USED LIMIT RESERVE PRI NAME

dev 8192 1502 6690 18% 0 - 1 /dev/vg00/lvol2

dev 8096 0 8096 0% 0 - 1 /dev/vg00/myswap

reserve - 5159 -5159

memory 15520 4151 11369 27%

total 31808 10812 20996 34% - 0 -

So the system works.

The above is how HP-UX expands swap space. Xiaobian believes that some knowledge points may be seen or used in our daily work. I hope you can learn more from this article. For more details, please 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