Memory Issues On Linux

View previous topic View next topic Go down

Memory Issues On Linux

Post by jamied_uk on 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
avatar
jamied_uk
Admin

Posts : 2296
Join date : 2010-05-09
Age : 34
Location : UK

http://address-shortner.co.uk

Back to top Go down

Re: Memory Issues On Linux

Post by jamied_uk on 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
avatar
jamied_uk
Admin

Posts : 2296
Join date : 2010-05-09
Age : 34
Location : UK

http://address-shortner.co.uk

Back to top Go down

View previous topic View next topic Back to top

- Similar topics

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