Tiny Core Linux

Tiny Core Base => TCB Q&A Forum => Topic started by: q7x on October 24, 2009, 06:45:33 PM

Title: Ram problem
Post by: q7x on October 24, 2009, 06:45:33 PM
tinycore load in ram. after copy file ( for example 100 MB) into hard disk (/mnt/hda1) memory used = x + 100 MB
is there any method for copy file into hard disk and not use ram capacity.
Title: Re: Ram problem
Post by: bmarkus on October 24, 2009, 06:54:14 PM
tinycore load in ram. after copy file ( for example 100 MB) into hard disk (/mnt/hda1) memory used = x + 100 MB
is there any method for copy file into hard disk and not use ram capacity.

How do you measure RAM usage?
Title: Re: Ram problem
Post by: q7x on October 24, 2009, 07:00:17 PM
size of backup.tar : 602 MB

before copy backup

free

                  total             used         free           shared      buffers
 Mem:      1026916        35972       990944            0           80
Swap:            0              0                 0
Total:      1026916        35972       990944

cd /mnt/hda1/
cp backup.tar backup2.tar
free

                 total             used             free        shared      buffers
Mem:     1026916        1011176        15740            0         1380
Swap:            0            0                    0
Total:      1026916      1011176        15740
Title: Re: Ram problem
Post by: q7x on October 24, 2009, 07:10:53 PM
after delete backup2.tar

rm -rf backup2.tar
free

                   total           used            free          shared      buffers
 Mem:      1026916       521748       505168            0         1400
Swap:            0            0                    0
Total:      1026916       521748       505168
Title: Re: Ram problem
Post by: bmarkus on October 24, 2009, 07:19:20 PM
This is normal, in a LINUX system usually you see low free memory size with command 'free'. After some use you can see increased number of buffer; it is not a lost memory, just allocated and will be reused when needed.

Better to use 'df -h' command and look for tmpfs available space mounted on / before and after.
Title: Re: Ram problem
Post by: q7x on October 24, 2009, 07:31:33 PM
thanks bmarkus for this help and other replies.
   
Good luck to you and all  Hungarian