|
|
|
|||||||||||
Memory limit for a single userAugust
17
Yesterday night, chatting with maop he ask about how to clean the memory in linux, I ask what about what he means about "cleaning", he said "free all the memory used by cach??????©", Well, in some way is a nice question that I make to myself some months ago, "Why is allways used all my RAM if I have 528MB?", google points me to some page wich solve my question: "Cache", yes, most of my RAM is used for cache, why?, well, is easier and faster for linux to load chunks of programs from the cache instead loading from the disk, so if you have firefox opened you can open a new window faster than the first time, even if you close firefox it will open faster.Then, cleaning the cache is not a good idea, but, maybe you want to do it just to do it. Well, Cache is still there until Linux "thinks" that it will not be needed anymore (like swap pages) or when more resident memory is needed. Then you can
I use my "memory eater" program yesterday and I almost crash my system, as a single user!!, what if I where using a server with several users connected?. I mean, is there something like Quota but for RAM?. If you want to check it compile this and run it as a single user:
#include < stdlib.h > int main(void){ while (1){ malloc(150); } } #2 Re: Memory limit for a single usergunnar says the same to me, Well, then, there it is :-D. ulimit. [ Reply (0) ]
Leave a Comment
Comment XML feeds: RSS | Atom
|
|
Recent Comments On BlogMarco Antonio Islas Cruz on Marco Antonio Islas Cruz on Marco Antonio Islas Cruz on Getting ready Marco Antonio Islas Cruz on Python: Create win32 services using Python and py2exe jopython@gmail.com on Python: Create win32 services using Python and py2exe yodenuevo on Holy Shit! markuz on Holy Shit! yo on Holy Shit! Gustavo on Things that happen last week Marco Antonio Islas Cruz on Christine: rola_christine.py |
|||||||||
|
|
|||||||||||
#1 Re: Memory limit for a single user
Haha, nice!
you should stay a little more yesterday:
22:42 < markuz> maop, ps ahi va, pero medio lenton
22:43 < markuz> no mames.. la memoria se me lleno, se libera hasta que terminas con python
22:43 < markuz> ta mas shido el mio, te bloquea la maquina mas rapido :P
22:43 < markuz> wen
22:43 < markuz> weno
22:44 < markuz> ahi se ven.
22:44 < markuz> c-ya
22:44 -!- markuz [n=markuz@189.128.45.201] has quit ["Leaving"]
22:46 < maop> no mams
22:46 < maop> te limpia bien chido la memoria
22:46 < maop> tienes que reiniciar xD
22:47 < el_choya> he,he
22:47 < maop> se el_choya
22:47 < el_choya> que onda mi maop
22:47 < maop> aca arranando maquinas
22:48 < maop> a ver, eso no me gusto, vamos a arreglar el ulimit
Yep, you can set with ulimit a lot of things like maximum memory, max open files, max cpu time, and so... just type ulimit -a , and play with it.
cheers...