PC & IT SUPPORT MADE EASY FORUM
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Memory Issues On Linux

Go down

Memory Issues On Linux Empty Memory Issues On Linux

Post by jamied_uk 22nd November 2016, 16:16

Vid


You may need to su first to get access for freeing up memory from commands below! (not to watch them).

Code:
su



Code:
watch -n 3 free -m


Or you can also try the following command to see much detailed information about current memory usage:

Code:
watch -n 3 cat /proc/meminfo


Releasing the Memory






1. Freeing Up the Page Cache





you will need su access for this.

Code:
su


Code:
echo 1 > /proc/sys/vm/drop_caches


2. Freeing Up the Dentries and Inodes






Code:
echo 2 > /proc/sys/vm/drop_caches


3. Freeing Up the Page Cache, Dentries and Inodes






Code:
echo 3 > /proc/sys/vm/drop_caches


4. Flushing the File System Buffers






Code:
sync



yourownlinux.com/2013/10/how-to-free-up-release-unused-cached-memory-in-linux.html
jamied_uk
jamied_uk
Admin

Posts : 3053
Join date : 2010-05-09
Age : 41
Location : UK

https://jnet.sytes.net

Back to top Go down

Memory Issues On Linux Empty Re: Memory Issues On Linux

Post by jamied_uk 25th November 2016, 17:35

Freeing up disk space on linux



In this example i will be uninstalling msf metasploit framework and its repo entry!

Code:
locate metasp



sudo chown root metasploit-framework.list



Code:
df



Code:
locate metas


/opt/metasploit-framework

/var/lib/dpkg/info/metasploit-framework.list


Code:
cd /opt/metasploit-framework/



I did try

Code:
sudo rm -rf /opt/metasploit



but that didnt work!



askubuntu.com/questions/249484/how-can-i-uninstall-metasploit
jamied_uk
jamied_uk
Admin

Posts : 3053
Join date : 2010-05-09
Age : 41
Location : UK

https://jnet.sytes.net

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum