Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
cta
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Harbor Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
dCache
cta
Commits
e48ee19e
Commit
e48ee19e
authored
7 years ago
by
Julien Leduc
Browse files
Options
Downloads
Patches
Plain Diff
Setting nproc limits for user daemon higher
parent
4a54c903
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
continuousintegration/docker/ctafrontend/cc7/opt/run/bin/ctaeos-mgm.sh
+20
-1
20 additions, 1 deletion
...egration/docker/ctafrontend/cc7/opt/run/bin/ctaeos-mgm.sh
with
20 additions
and
1 deletion
continuousintegration/docker/ctafrontend/cc7/opt/run/bin/ctaeos-mgm.sh
+
20
−
1
View file @
e48ee19e
...
...
@@ -8,7 +8,7 @@ yum-config-manager --enable eos-citrine-depend
yum-config-manager
--enable
eos-citrine
# Install missing RPMs
yum
-y
install
eos-client eos-server xrootd-client xrootd-debuginfo xrootd-server cta-cli cta-debuginfo
yum
-y
install
eos-client eos-server xrootd-client xrootd-debuginfo xrootd-server cta-cli cta-debuginfo
sudo
# create local users as the mgm is the only one doing the uid/user/group mapping in the full infrastructure
groupadd
--gid
1100 eosusers
...
...
@@ -97,6 +97,25 @@ for ((i=0;i<600;i++)); do
done
test
-f
/CANSTART
&&
echo
OK
||
exit
1
# setting higher OS limits for EOS processes
maxproc
=
$(
ulimit
-u
)
echo
"Setting nproc for user daemon to
${
maxproc
}
"
cat
>>
/etc/security/limits.conf
<<
EOF
daemon soft nproc
${
maxproc
}
daemon hard nproc
${
maxproc
}
EOF
echo
"Checking limits..."
echo
-n
"nproc..."
if
[
"
${
maxproc
}
"
-eq
"
$(
sudo
-u
daemon bash
-c
'ulimit -u'
)
"
]
;
then
echo
OK
else
echo
FAILED
fi
echo
echo
"Limits summary for user daemon:"
sudo
-u
daemon bash
-c
'ulimit -a'
# start and setup eos for xrdcp to the ${CTA_TEST_DIR}
#/etc/init.d/eos start
/usr/bin/xrootd
-n
mq
-c
/etc/xrd.cf.mq
-l
/var/log/eos/xrdlog.mq
-b
-Rdaemon
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment