Modify the size of the default shared memory tmpfs and the size of the shared memory tmpfs

Source: Internet
Author: User

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.