On Thu, Oct 20, 2016 at 1:35 AM, Tejun Heo <tj@xxxxxxxxxx> wrote: > Hello, Parav. > > On Thu, Oct 20, 2016 at 01:24:42AM +0530, Parav Pandit wrote: >> userland can get the max numbers using other framework which is used >> by control & data plane available in C library form or in form of >> system tools. >> I was preferring to get and set through same interface because, >> It simplifies user land software which is often not written in C so >> its likely that it needs to rely on system tools and parse the >> content, iterate through devices etc. >> Getting these info through rdma.max just makes it simple. There will >> be logic built to read/write rdma.max in userland anyway, which can be >> leveraged for percentage calculation instead of doing it from two >> places. > > Yeah, I get that this can be convenient in this case but it isn't a > generic approach. I'd much prefer keeping it in line with other > resources. > Hmm. we don't have /proc/sys/kernel/pid_max type of simple interface to get the max values for rdma resources. rdma.max is close to that simplicity. > Thanks. > > -- > tejun -- To unsubscribe from this list: send the line "unsubscribe cgroups" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html