lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <loom.20110628T194004-818@post.gmane.org>
Date:	Tue, 28 Jun 2011 18:08:42 +0000 (UTC)
From:	Aditya Kali <adityakali@...gle.com>
To:	linux-kernel@...r.kernel.org
Subject: Re: [RFC PATCH 4/4] cgroups: Add an rlimit subsystem

Frederic Weisbecker <fweisbec <at> gmail.com> writes:
> +struct rlim {
> +	struct res_counter		proc_counter;
> +	struct cgroup_subsys_state	css;
> +};
This can be used to enforce limits on FDs (RLIMIT_NOFILE), TCP/UDP ports,
locked memory, queued data on sockets, etc. How making proc_counter an
array (currently of size 1) ? Though with this patch there is just one, but it 
will great to have ready support for easily adding more.

> +static struct cftype cft_max_proc = {
> +	.name		= "max_proc",
> +	.read_u64	= max_proc_read_u64,
> +	.write_u64	= max_proc_write_u64,
> +};
How about exporting USAGE, MAX_USAGE and FAILCNT too? These are useful
for resource estimation.


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ