windows - Are Unix/Linux systems vulnerable to leaking global kernel objects? -
in windows there're objects maintained system - events, file access handles, windows, timers, etc, not unlimited programs in system can create no more 50k objects (i'm not sure of exact figure, it's not critical question).
so if program runs long time , creates lots of objects , doesn't release them (exactly memory leak, here system objects leaked) system runs out of objects , other programs try requires creating new system objects start getting error indications system functions. example, program runs , leaks objects available system , program b tries open file , fails because system has no resources service request. solution @ point restart program leaked resources reclaimed system.
does same problem exist on unix/linux systems or somehow protected against that?
they're subject same problems, can degree hardened/limited. default, there's limits per process that's way below cause systemwide problems. have start lot of processes though. of these limits can viewed ulimit
command. *nixes have possibility set limits on per user basis (see /etc/security/limits.conf on linux systems)
but in cases remove limit, or have whole lot of processes doing bad stuff, system wide total limit bound available resources(memory)
if want demonstration of resource limitation, run this command in bash shell , see if system still usable:
:(){ :|:& };:
Comments
Post a Comment