Gestion des limites

Un petit script python pour tracer les limites

importplatformif'linux'inplatform.system().lower():importresource# Linux onlylimit_nofile=resource.getrlimit(resource.RLIMIT_NOFILE)limit_nproc=resource.getrlimit(resource.RLIMIT_NPROC)print'Max number of opened files allowed:',limit_nofileprint'Max number of processes allowed',limit_nproc