|
|
新加了一根1G内存,想充分利用它,
- pjq@localhost ~ $ df -h
- Filesystem Size Used Avail Use% Mounted on
- rootfs 18G 4.9G 12G 30% /
- /dev/root 18G 4.9G 12G 30% /
- udev 10M 160K 9.9M 2% /dev
- shm 1014M 0 1014M 0% /dev/shm
- rc-svcdir 1.0M 76K 948K 8% /lib/rc/init.d
- /dev/sda10 7.4G 1.1G 6.0G 15% /home
- /dev/sda1 15G 8.7G 6.1G 59% /media/sda1
- /dev/sda5 40G 36G 3.5G 92% /media/sda5
- /dev/sda6 39G 39G 44M 100% /media/sda6
- /dev/sda7 30G 28G 1.7G 95% /media/sda7
- none 1014M 12K 1014M 1% /tmp
- none 1014M 0 1014M 0% /var/tmp
复制代码
已经将/tmp和/var/tmp挂载进了内存,- pjq@localhost ~ $ cat /etc/fstab
- # /etc/fstab: static file system information.
- #
- # noatime turns off atimes for increased performance (atimes normally aren't
- # needed; notail increases performance of ReiserFS (at the expense of storage
- # efficiency). It's safe to drop the noatime options if you want and to
- # switch between notail / tail freely.
- #
- # The root filesystem should have a pass number of either 0 or 1.
- # All other filesystems should have a pass number of 0 or greater than 1.
- #
- # See the manpage fstab(5) for more information.
- #
- # <fs> <mountpoint> <type> <opts> <dump/pass>
- # NOTE: If your BOOT partition is ReiserFS, add the notail option to opts.
- /dev/sda9 /boot ext2 noauto,noatime 1 2
- /dev/sda11 / ext3 noatime 0 1
- /dev/sda8 none swap sw 0 0
- /dev/sda10 /home ext3 noatime 0 1
- /dev/cdrom /media/cdrom auto noauto,ro 0 0
- #/dev/fd0 /mnt/floppy auto noauto 0 0
- /dev/sda1 /media/sda1 ntfs-3g defaults,locale=zh_CN.UTF-8,umask=002 0 0
- /dev/sda5 /media/sda5 ntfs-3g defaults,locale=zh_CN.UTF-8,umask=002 0 0
- /dev/sda6 /media/sda6 vfat defaults,iocharset=utf8,umask=002 0 0
- /dev/sda7 /media/sda7 vfat defaults,iocharset=utf8,umask=002 0 0
- # glibc 2.2 and above expects tmpfs to be mounted at /dev/shm for
- # POSIX shared memory (shm_open, shm_unlink).
- # (tmpfs is a dynamically expandable/shrinkable ramdisk, and will
- # use almost no memory if not populated with files)
- shm /dev/shm tmpfs nodev,nosuid,noexec 0 0
- none /tmp tmpfs defaults 0 0
- none /var/tmp tmpfs defaults 0 0
复制代码 如何更好的充分利用内存? |
|