首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >linux中的限制是每个用户还是每个进程的限制(就像ulimit或/etc/security/Lims.conf所控制的那样)?

linux中的限制是每个用户还是每个进程的限制(就像ulimit或/etc/security/Lims.conf所控制的那样)?
EN

Unix & Linux用户
提问于 2014-02-26 15:43:08
回答 2查看 2.5K关注 0票数 3

我看到了正在运行的进程的三个副本,其中一个副本似乎是内存问题。每个人各自占据大约3-4 GB的memory..would,一个杀死其中一人的限制帐户?如果是这种情况,谁会被杀?

EN

回答 2

Unix & Linux用户

发布于 2014-02-26 15:59:09

它们是每个进程,但可以是用户依赖的,实际上配置调用它是特定的域。

例如,我设置了以下限制,以便能够以更好的延迟处理音频,并且我是音频组的成员。所以它只会影响我的过程。

代码语言:javascript
复制
@audio          -       rtprio          100
@audio          -       nice            -10

这也取决于正在设定的限制。maxlogins,nprocs显然是每个用户。另一方面,核心是每个过程的限制。

代码语言:javascript
复制
<domain> can be:
#        - an user name
#        - a group name, with @group syntax
#        - the wildcard *, for default entry
#        - the wildcard %, can be also used with %group syntax,
#                 for maxlogin limit
#        - NOTE: group and wildcard limits are not applied to root.
#          To apply a limit to the root user, <domain> must be
#          the literal username root.
#
票数 1
EN

Unix & Linux用户

发布于 2014-02-26 15:59:16

参考man 5 limits.conf

代码语言:javascript
复制
The pam_limits.so module applies ulimit limits, nice priority 
and number of simultaneous login sessions limit to user login sessions.

The syntax of the lines is as follows:
<domain><type><item><value>

<domain> = a username, a groupname, the wildcard *, the wildcard %, 
           an uid range, a gid range, a gid specified as %:<gid> 
           applicable to maxlogins limit only
票数 0
EN
页面原文内容由Unix & Linux提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://unix.stackexchange.com/questions/117076

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档