Recently in the optimization of oracle, encountered the oracle SGA size is much larger than the maximum shared memory of the Linux system, so that when I use the ipcs command to view, the oracle SGA area is divided into 10 segments, this Greatly affected the speed of the oracle's response. Later, after consulting the data, I came up with a simple way to modify the shared memory and share it with everyone.
Generally think that modifying the system shared memory requires modifying the kernel program, then make, it is very troublesome. In fact, as long as you add something to rc.local, you can avoid the trouble of modifying the kernel. Modify it as follows: Modify the /etc/rc.d/rc.local file.
Add the following line after the comment in front of the file:
#Modify the kernel shared memory size;
echo 134217728 > /Proc/sys/kernel/shmmax;
# Description: The value here is half of the memory;
#If the system memory is 256M, the value is 134217728; Br>
#If the system memory is 512M, the value is 268435456;
After the modification is completed, restart the machine and get it.
The default shared memory size of linxu seems to be 32M. I used ipcs to view my machine before modification. The oracle segment is 10, after modification, there is only one. Oracle is in a memory segment, which makes the speed of data exchange increase.
As a Linux enthusiast, after several determinations, he gave up the dual system and installed Linux
Slightly larger sites are inevitably load balanced, but hardware load balancing is expensive. There
1, what is light-emitting diode Light-emitting diodes are everywhere in everyday appliances, it can
The wait queue in the Linux kernel has many uses for interrupt handling, process synchronization, a
Linux directory creation and deletion commands basics
Rookie class: teach you how to improve the security of Linux system
Neighbor subsystem of linux protocol stack (garbage collection seven)
Getting Started with Linux Commands: Basics of System Security Commands
The difference between switching users su and su in Linux Shell
Linux device driver third edition use problem
Batch modify file (or folder) owner or permission
What are the new features of windows10? Win10 nine highlights at a glance
Win2000/XP system three typical & #
How to display the "Computer" icon on the desktop in Windows 8
Win7 play video no sound how to do
Two ways to retrieve the traditional desktop of win8 system
Win8 delete system comes with application skills
What should I do if the error code 80070490 occurs when the Windows 8.1 system is restored?
Win10 standby continuous network how to set