Link to home
Start Free TrialLog in
Avatar of CahitEy
CahitEy

asked on

Linux defrag memory

I am checking my memory with "free" command but it is always increasing my used memory :D
is there anyway for defragment of it
Avatar of fosiul01
fosiul01
Flag of United Kingdom of Great Britain and Northern Ireland image

nop ,

but what you meant by used memory ??

does it show cached ??? cached is always good.

can you show me the out put of

free -m

and tell me which is one bugging you
If you want to know the amount of used or free memory, you must always read the line

-/+ buffers/cache:

of the free command.
Avatar of CahitEy
CahitEy

ASKER

i know i could see the memory usage but i just want to know if there is a way for defrag
no you cant defrag memory uses


may be we can help you to find out which process is eating your memory and further but not defrag
Avatar of CahitEy

ASKER

i know it is a php site :D
but i do not know which module is encountring this :(
then it would be Apache issue

php works with apache...

whats the outpu tof

free -m

and

ps -auxf | sort -nr -k 4 | head -10
Even if there was a defragmentation tool (there isn't!), it wouldn't change the memory consumption: only the layout of the chunks would change.
However the layout doesn't matter, because the mapping to the real memory chunks is done by hardware anyway. There is no performance penalty. It's handled by the MMU (memory management unit) of the respective processor.
Avatar of CahitEy

ASKER

Fosiul01 i have not seen your comment sorry;
please check this  :
https://www.experts-exchange.com/questions/25866731/How-could-i-detect-the-resource-usage.html
Well, he asked for information on the memory fragmentation. I'm not particularly keen on the points (are they good for anything on the receiving side ???), but that was, what he asked for and he has been answered.
ASKER CERTIFIED SOLUTION
Avatar of fosiul01
fosiul01
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of CahitEy

ASKER

Thanks for detailed description