Howto start mongod as daemon on NUMA machine?

Showing 1-13 of 13 messages
Howto start mongod as daemon on NUMA machine? Baurzhan Taishinov 7/26/11 2:34 AM
I installed mongodb on debian squeeze from 10gen repository. 
When started mondod writes to log

** WARNING: You are running on a NUMA machine.
**          We suggest launching mongod like this to avoid performance problems:
**              numactl --interleave=all mongod [other options]

Howto change init script to start daemon with numactl?

--
С почтением, Бауыржан.
Re: [mongodb-user] Howto start mongod as daemon on NUMA machine? Scott Hernandez 7/26/11 4:18 AM
Change the init.d script or upstart job to use numactl as described
below instead of mongod as the startup process.

2011/7/26 Baurzhan Taishinov <baur...@gmail.com>:> --
> You received this message because you are subscribed to the Google Groups
> "mongodb-user" group.
> To post to this group, send email to mongod...@googlegroups.com.
> To unsubscribe from this group, send email to
> mongodb-user...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/mongodb-user?hl=en.
>

Re: [mongodb-user] Howto start mongod as daemon on NUMA machine? Baurzhan Taishinov 7/26/11 6:06 AM
In debian init script uses start-stop-daemon tool to start daemon.  Howto change this

DAEMON=/usr/bin/mongod
start_server() {
# Start the process using the wrapper
            start-stop-daemon --background --start --quiet --pidfile $PIDFILE \
                        --make-pidfile --chuid $DAEMONUSER \
                        --exec $DAEMON -- $DAEMON_OPTS
            errcode=$?
        return $errcode
}
 

to use numactl --interleave=all?


2011/7/26 Scott Hernandez <scotthe...@gmail.com>



--
С почтением, Бауыржан.
Re: Howto start mongod as daemon on NUMA machine? Steffen 7/26/11 8:39 AM
I did this in my Init script.
I added these lines in the start_server() function.
It's not perfect so I welcome for any suggestion.
..........
start_server() {
# check for numactl
NUMACTL=$(which numactl)
if [ -n "$NUMACTL" ]; then
    DAEMON_OPTS="--interleave=all ${DAEMON} ${DAEMON_OPTS}"
    DAEMON="$NUMACTL"
fi

# Start the process using the wrapper
...........

Regards,
Seffen
Re: [mongodb-user] Howto start mongod as daemon on NUMA machine? Alexander Azarov 7/26/11 8:43 AM
E.g.

            /usr/bin/numactl --interleave=all -- \
Re: [mongodb-user] Re: Howto start mongod as daemon on NUMA machine? Baurzhan Taishinov 7/26/11 10:34 PM
This script not works:( I got an error 
start-stop-daemon: unrecognized option '--interleave=all'
Try 'start-stop-daemon --help' for more information.
 failed!



--
You received this message because you are subscribed to the Google Groups "mongodb-user" group.
To post to this group, send email to mongod...@googlegroups.com.
To unsubscribe from this group, send email to mongodb-user...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/mongodb-user?hl=en.




--
С почтением, Бауыржан.
Re: [mongodb-user] Re: Howto start mongod as daemon on NUMA machine? Baurzhan Taishinov 7/26/11 10:44 PM
Sorry. Error caused by absence of numactl binary in my system. I need install numactl?--
С почтением, Бауыржан.
Re: Howto start mongod as daemon on NUMA machine? Alexander Azarov 7/26/11 10:44 PM
Steffen, you will not be able to stop using "/etc/init.d/mongodb stop". There is nothing wrong in wrapping whole "start-stop-deamon" into "numactl", since "numactl" affects all the child hierarchy.
Re: Howto start mongod as daemon on NUMA machine? Steffen 7/27/11 1:00 AM
Ok, thanks for the tipp.
Stop is working with my solution too, because numactl is transparent
for the mongod process.
Re: [mongodb-user] Re: Howto start mongod as daemon on NUMA machine? Baurzhan Taishinov 7/27/11 2:42 AM
Steffen thanks. It works. And /etc/init.d/mongodb stop works well.

On Wed, Jul 27, 2011 at 11:44 AM, Alexander Azarov <aza...@aha.ru> wrote:
Steffen, you will not be able to stop using "/etc/init.d/mongodb stop". There is nothing wrong in wrapping whole "start-stop-deamon" into "numactl", since "numactl" affects all the child hierarchy.

--
You received this message because you are subscribed to the Google Groups "mongodb-user" group.
To view this discussion on the web visit https://groups.google.com/d/msg/mongodb-user/-/0BOeoE48W_YJ.

To post to this group, send email to mongod...@googlegroups.com.
To unsubscribe from this group, send email to mongodb-user...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/mongodb-user?hl=en.



--
С почтением, Бауыржан.
Re: [mongodb-user] Re: Howto start mongod as daemon on NUMA machine? Alexander Azarov 7/27/11 7:45 AM
Oh, my mistake then!

> --
> You received this message because you are subscribed to the Google Groups "mongodb-user" group.
> To post to this group, send email to mongod...@googlegroups.com.
> To unsubscribe from this group, send email to mongodb-user...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/mongodb-user?hl=en.
>

Re: [mongodb-user] Re: Howto start mongod as daemon on NUMA machine? mluggy 2/17/13 11:23 PM
Actually I couldn't get it to work with the init.d script that comes out of the box (mongo 2.3.3 on debian 6). Got the same problem with start-stop-daemon. This seems to solve it: https://github.com/chipitsine/mongo/commit/f82aba3e0d459d17bee06577c479361fba9dfcd6
Re: [mongodb-user] Re: Howto start mongod as daemon on NUMA machine? Alexander Azarov 2/17/13 11:35 PM
Yup, there are at least two pull requests sent:

--
--
You received this message because you are subscribed to the Google
Groups "mongodb-user" group.
To post to this group, send email to mongod...@googlegroups.com
To unsubscribe from this group, send email to
mongodb-user...@googlegroups.com
See also the IRC channel -- freenode.net#mongodb
 
---
You received this message because you are subscribed to the Google Groups "mongodb-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mongodb-user...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.