Modify the size of the default shared memory tmpfs and the size of the shared memory tmpfs
Mount the existing directory or create a new directory
For example:
[Root @ luozhonghua/] # df-h
Filesystem Size Used Avail Use % Mounted on
/Dev/mapper/vg_luozhonghua-lv_root
21G 4.1G 16G 21%/
Tmpfs 4.0 K 4.0 K 0 100%/dev/shm
/Dev/sda1 485 M 32 M 428 M 7%/boot
Tmpfs 4.0 K 4.0 K 0 100%/dev/shm
Modify:
[Root @ luozhonghua/] # mkdir/mnt/ram
[Root @ luozhonghua/] # mount-t tmpfs-o size = 1024 m tmpfs/mnt/ram
[Root @ luozhonghua/] # df-h
Filesystem Size Used Avail Use % Mounted on
/Dev/mapper/vg_luozhonghua-lv_root
21G 4.1G 16G 21%/
Tmpfs 4.0 K 4.0 K 0 100%/dev/shm
/Dev/sda1 485 M 32 M 428 M 7%/boot
Tmpfs 4.0 K 4.0 K 0 100%/dev/shm
Tmpfs 1.0G 0 1.0G 0%/mnt/ram
Note: All of the above are temporary. Once linux is restarted, It is restored. Therefore, the original configuration is permanently modified as follows:
[Root @ luozhonghua ~] # Vi/etc/fstab
Tmpfs/dev/shm tmpfs ults, size = 20G 0 0
How to set the size of the exclusive shared memory?
On the first floor, you will really talk about it! So what do you do when you buy a 1g video card. How nice it is to directly change the shared memory, and Use 128 of the video card to 1 GB of sharing !!! There is also a set of... BIOS settings !! It has nothing to do with uniqueness !! Which one do you want to talk about? As for changing the exclusive shared memory. I told you that it is impossible, and you should not worry about how much memory your video card will actually occupy. This type of sharing is different from the integrated video card. If you cannot use it, your memory will not be reduced .. You will use the exclusive display when you draw a picture. You need to limit it! I am thundered.
There are two solutions. Changing the virtual memory will have some effect, but you just need to burn the memory, and 64-bit win7 will also burn the memory. We recommend that you use the second method to increase the capacity to 8 GB. 4G is recommended for win7, but it depends on what you are doing. It is too expensive to map the memory. 4G cannot be used up, but there is no money to deal with the specific situation.
How does the integrated graphics card change the shared memory size?
Are you a laptop? The vast majority of laptops are integrated with video cards, but the display card cannot be changed in the bios, because the manufacturer has disabled it when setting the bios. Do not change the bios of a notebook. The default configuration is of the best compatibility, which is set by the manufacturer before leaving the factory. This is very different from the desktop bios. the notebook is not as big as the desktop space.