[SERVER-3574] add numactl to init scripts Created: 10/Aug/11  Updated: 18/Jan/17  Resolved: 28/Feb/12

Status: Closed
Project: Core Server
Component/s: Packaging
Affects Version/s: None
Fix Version/s: 2.1.1

Type: Improvement Priority: Major - P3
Reporter: Mathias Stearn Assignee: Michael A. Fiedler
Resolution: Done Votes: 2
Labels: initscript
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
Related
related to SERVER-7268 Add numactl to upstart scripts Closed
is related to SERVER-27587 mongod.service does not disable NUMA Closed
Participants:

 Description   

Should do something like:

if numactl --hardware > /dev/null 2> /dev/null ; then
numactl --interleave=all mongod ...
else
mongod
fi



 Comments   
Comment by Azat Khuzhin [ 10/Mar/13 ]

Any news?

Comment by Azat Khuzhin [ 08/Jun/12 ]

I think that there is one concept, I must use lock file, only because there is now way to get PID after numactl
Can you explain me?

About "--pidfilepath" - I change patch

Comment by Michael A. Fiedler [ 08/Jun/12 ]

In general, commits and pull requests should reflect a single concept or thought, putting two together makes it harder for me to accept one of them.

Comment by Michael A. Fiedler [ 08/Jun/12 ]

Thanks for the pull request.

The mongod.lock file may contain the pid, but should not be used by scripts.
More on the lock file can be seen here: http://www.mongodb.org/display/DOCS/Durability+and+Repair#DurabilityandRepair-%7B%7Bmongod.lock%7D%7D

If a pid file is desired, configure the full file location via the "--pidfilepath" argument.

Comment by Azat Khuzhin [ 25/Apr/12 ]

See my pull request https://github.com/mongodb/mongo/pull/214

Comment by Azat Khuzhin [ 25/Apr/12 ]

I suggest to use lock file, for mongod PID

Comment by Azat Khuzhin [ 24/Apr/12 ]

This not works

Because numactl if use it in such way - it not start, because of argument "-interleave=all", it must be after "-"
But even if we fix this, numactl goes to background and not return child pid, and from "start-stop-daemon" we have pid of numactl, that already not exist

Comment by Michael A. Fiedler [ 28/Feb/12 ]

Code reviewed, merged. Should be in upcoming packages.

Comment by auto [ 28/Feb/12 ]

Author:

{u'login': u'miketheman', u'name': u'Mike Fiedler', u'email': u'miketheman@gmail.com'}

Message: Merge pull request #184 from miketheman/SERVER-3574

SERVER-3574 updating init scripts for numa
Branch: master
https://github.com/mongodb/mongo/commit/4ddcf45dff502013298f5ce1495a26739d2af4ed

Comment by auto [ 28/Feb/12 ]

Author:

{u'login': u'miketheman', u'name': u'Mike Fiedler', u'email': u'miketheman@gmail.com'}

Message: Merge pull request #184 from miketheman/SERVER-3574

SERVER-3574 updating init scripts for numa
Branch: master
https://github.com/mongodb/mongo/commit/4ddcf45dff502013298f5ce1495a26739d2af4ed

Generated at Thu Feb 08 03:03:26 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.