Run as root requirement for NUMA support features not in documentation
Bug #1419541 reported by
markus_albe
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Percona Server moved to https://jira.percona.com/projects/PS |
Fix Released
|
Medium
|
Hrvoje Matijakovic | ||
5.5 |
Fix Released
|
Medium
|
Hrvoje Matijakovic | ||
5.6 |
Fix Released
|
Medium
|
Hrvoje Matijakovic |
Bug Description
Documentation about NUMA support features here www.percona.
Possible workaround would be to deliver a sudoers entry:
[root@percona1 ~]# cat /etc/sudoers.
Cmnd_Alias DROP_CACHES = /sbin/sysctl -q -w vm.drop_
mysql ALL=(root) NOPASSWD: DROP_CACHES
And then call the sysctl command in mysqld_safe through "sudo" when it detects is not running as root.
tags: | added: doc i50751 |
Changed in percona-server: | |
status: | Incomplete → New |
To post a comment you must log in.
Hi Marcos,
With sandbox, I'm able to start it without sudo or root. Am I missing anything?
nilnandan. joshi@bm- support01: ~/sandboxes/ msb_5_6_ 15$ cat my.sandbox.cnf | egrep "flush|numa" joshi@bm- support01: ~/sandboxes/ msb_5_6_ 15$
flush_caches=1
numa_interleave=1
nilnandan.
nilnandan. joshi@bm- support01: ~/sandboxes/ msb_5_6_ 15$ ./start joshi@bm- support01: ~/sandboxes/ msb_5_6_ 15$ ps -ef | grep 5_6_15 | grep njoshi 5.6.15/ bin/mysqld_ safe --defaults- file=/home/ njoshi/ sandboxes/ msb_5_6_ 15/my.sandbox. cnf 5.6.15/ bin/mysqld --defaults- file=/home/ njoshi/ sandboxes/ msb_5_6_ 15/my.sandbox. cnf --basedir= /home/njoshi/ 5.6.15 --datadir= /home/njoshi/ sandboxes/ msb_5_6_ 15/data --plugin- dir=/home/ njoshi/ 5.6.15/ lib/mysql/ plugin --log-error= /home/njoshi/ sandboxes/ msb_5_6_ 15/data/ msandbox. err --pid-file= /home/njoshi/ sandboxes/ msb_5_6_ 15/data/ mysql_sandbox56 151.pid --socket= /tmp/mysql_ sandbox56151. sock --port=56151 joshi@bm- support01: ~/sandboxes/ msb_5_6_ 15$
. sandbox server started
nilnandan.
nilnand+ 23278 1 0 04:23 pts/9 00:00:00 /bin/sh /home/njoshi/
nilnand+ 23550 23278 2 04:23 pts/9 00:00:00 /home/njoshi/
nilnandan.
nilnandan. joshi@bm- support01: ~/sandboxes/ msb_5_6_ 15$ cat /proc/23550/ numa_maps | grep mysqld njoshi/ 5.6.15/ bin/mysqld mapped=1301 active=1 N0=929 N1=372 njoshi/ 5.6.15/ bin/mysqld anon=112 dirty=112 mapped=169 active=112 N0=112 N1=57 joshi@bm- support01: ~/sandboxes/ msb_5_6_ 15$ joshi@bm- support01: ~/sandboxes/ msb_5_6_ 15$ numactl --hardware joshi@bm- support01: ~/sandboxes/ msb_5_6_ 15$ id nilnandan. joshi) gid=10000(percona) groups= 10000(percona) ,10002( recoverybox) ,10016( support) ,10028( xmpp_support) joshi@bm- support01: ~/sandboxes/ msb_5_6_ 15$
00400000 interleave:0-1 file=/home/
0113e000 interleave:0-1 file=/home/
nilnandan.
nilnandan.
available: 2 nodes (0-1)
node 0 cpus: 0 2 4 6 8 10 12 14 16 18 20 22
node 0 size: 96642 MB
node 0 free: 23713 MB
node 1 cpus: 1 3 5 7 9 11 13 15 17 19 21 23
node 1 size: 96764 MB
node 1 free: 29832 MB
node distances:
node 0 1
0: 10 20
1: 20 10
nilnandan.
uid=10101(
nilnandan.