[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: putting "/tmp" to memory help



On Du, 23 ian 11, 15:46:20, Klistvud wrote:
> 
> Any opinions?

No, just facts ;)

$ free
             total       used       free     shared    buffers     cached
Mem:       2059652    1847748     211904          0     153008     885512
-/+ buffers/cache:     809228    1250424
Swap:       975204          0     975204
$ df -hT
Filesystem    Type    Size  Used Avail Use% Mounted on
/dev/sda6     ext3    9.2G  4.8G  4.0G  55% /
tmpfs        tmpfs   1006M     0 1006M   0% /lib/init/rw
udev         tmpfs   1004M  228K 1004M   1% /dev
tmpfs        tmpfs   1006M     0 1006M   0% /dev/shm
/dev/sda2     ext3     19G  6.5G   11G  38% /home
/dev/sda8      xfs    104G  102G  2.4G  98% /home/amp/big
/dev/sda7     ext3    9.2G  4.5G  4.3G  52% /var
tmpfs        tmpfs   1006M  364K 1006M   1% /tmp

$ uptime
 18:07:19 up 1 day, 19:56, 10 users,  load average: 0.57, 0.77, 0.67

$ ps aux | grep wc -l
198

And to answer OP's question:

Boot from a live CD or so, and then:

# mv /tmp /oldtmp
# mkdir /tmp
echo "tmpfs     tmp         tmpfs" >> /etc/fstab

If you're satisfied with the results you can 

# rm /oldtmp -rf

Regards,
Andrei
-- 
Offtopic discussions among Debian users and developers:
http://lists.alioth.debian.org/mailman/listinfo/d-community-offtopic

Attachment: signature.asc
Description: Digital signature


Reply to: