How to extend memory in UNIX?


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting How to extend memory in UNIX?
# 1  
Old 01-06-2017
Question How to extend memory in UNIX?

Hi friends iam new to unix. how to extend memory in UNIx.

what are the possible scenarios to increase memory.

I just noticed we have swap memory also but when and how to use it. and what is the correct way to increase RAM. please provide information or some useful commands. Thanks
# 2  
Old 01-06-2017
You will power off the server and add more memory in the slot in the physical world (bare metal)

In virtual enviroment things are easier if you have free memory on your machine of course.

On most of the virtual systems you can add memory dynamically while machine is running.
Solaris hypervisors it's a simple ldm set-mem <new increased value>
HPUX hypervisor it's a simple hpvmmodify ...
VMWARE configure 'hot memory' to be able to click it away!

That's adding. It will work without pain almost always.
On bare metal with caged resources such as zones, jails, dockers etc, it really depends of the implementation and of course if you have free memory on the machine.

Solaris implements rcapd with prtctl to increase without reboot of the non-global zone.
As for docker, i'm not really acquainted, but it looks like reboot is required.

Removing can be a bit trickier, and i in 99% of the time request a downtime.

As for SWAP, it a much broader subject and it is well, application and operating system specific.
You should follow guidelines mentioned in the specific documentation for your OS and/or applications for sizing the swap area.
Machines (apps, databases on it) that start to use swap instead of memory, will be much slower and less responsive due to using disk (which is much slower then memory).
This User Gave Thanks to Peasant For This Post:
# 3  
Old 01-06-2017
hi above commands are not workingin RHEL.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Virtual Memory in UNIX

So, I would ask you a piece of advice about which books or titles could give me comprehensive information about virtual memory in UNIX. Especially, I would found out that virtual address translation corresponds structures of kernel! Thanks! (2 Replies)
Discussion started by: Fadedfate
2 Replies

2. UNIX for Dummies Questions & Answers

UNIX Memory

what is the difference between cached and buffer memory? can i use either buffer or cached memory if i want to run an application? (1 Reply)
Discussion started by: erin00
1 Replies

3. Shell Programming and Scripting

Memory utilization in HP unix

Hi, I am creating monitoring scripts in HP unix for that i need CPU utilization and memory utilization in HP unix. for CPU utilization i am using TOP command for Memory utilizaion i am not able to use glance command in scripts. means i am not able to redirect and stop. apart from... (1 Reply)
Discussion started by: rsivasan
1 Replies

4. HP-UX

How to find the memory in HP-Unix?

Hi, I have a HP-Unix server, version B.11.23. Can someone tell me how to find out the physical memory & virtual memory (swap) in my server? & what is Page fault? & is there any limitation for page fault? Thank you. Your help is appreciated. (7 Replies)
Discussion started by: Amol21
7 Replies

5. UNIX for Advanced & Expert Users

process memory change in unix

Hello! I was wondering if I could trouble all your experts with a couple questions regarding checking memory usage changes during the run time in the specific program (process) under UNIX. 1. After the program starts running, is ps the best way to tell the total memory usage at the any time? ... (2 Replies)
Discussion started by: aginger
2 Replies

6. HP-UX

UNIX memory problems

I don't know if this is better suited for the application section, but here goes. We are currently running HP-UX 11 as our database server. The database is Progress version 9.1C. As of late, some of our batch processes that run on the UNIX db server are erroring out because of what appear to... (3 Replies)
Discussion started by: eddiej
3 Replies

7. UNIX for Advanced & Expert Users

unix memory management

i am looking for the books or web-sites which explains the unix memory management in detail. do you know any useful material? (1 Reply)
Discussion started by: gfhgfnhhn
1 Replies

8. HP-UX

Obtain Memory on HP UNIX

Hi, Does anyone know an easy way of getting the memory usage on a UNIX box? I basically want to find the total % available/in use. Running vmstat gives me 'avm' and 'free' but come in bytes and not percents. Didn't see a switch in sar that just gave me the memory stats similar to Sun's -r... (4 Replies)
Discussion started by: jonesin
4 Replies

9. Programming

memory increasing on UNIX

hi, i'm writing a program that is running always... but, i have a problem that memory is increasing.. i want to know whether does stack size inscease or not, when program is running.. i don't know what is the cause stack or heap... i need some help.. :( (1 Reply)
Discussion started by: netfer
1 Replies

10. UNIX for Dummies Questions & Answers

Unix system memory

Can you please tell me how to find out System Memory (RAM) for a AIX unix server? The command prtconf will do for Solaris but I don't know for AIX Unix. (1 Reply)
Discussion started by: anilkumar
1 Replies
Login or Register to Ask a Question