Hi,
I have a problem when I try to run multi-core judgedaemon.
I followed your document. I setup cgroups, edit etc/cgroup-domjudge.conf:
-- Change cpuset.cpus = 0 => cpuset.= 0-22;
I also add file misctools/create_cgroups to /etc/cgconf.d/cgroup-domjudge.
After that, I check /cgroup/cpuset/domjudge/cpuset.cpus => Output is 0-23.
I also build runguard after I config cgroups.
But I only can run 8 judgedaemon. From judge 9th, if it compile any code, I will receive this error:
Compiling failed with exitcode 255, compiler output: /domjudge/judgehost/bin/runguard: illegal user specified: 7809 Try `/domjudge/judgehost/bin/runguard --help' for more information.
I set all user is user that I run domjudge. But judge 8 judge can compile well.
Please help me! Thank you!
Hi Linh,
Ah, that's because we only hardcoded 8 users in etc/runguard-config.h. You should edit that file and add extra users, then recompile runguard and things should work.
Note that if you also rerun configure, then you should edit etc/runguard-config.h.in instead, since the first is generated from that file.
Jaap
On 12-05-16 13:58, Vũ Linh Nguyễn wrote:
Hi,
I have a problem when I try to run multi-core judgedaemon.
I followed your document. I setup cgroups, edit etc/cgroup-domjudge.conf:
-- Change cpuset.cpus = 0 => cpuset.= 0-22;
I also add file misctools/create_cgroups to /etc/cgconf.d/cgroup-domjudge.
After that, I check /cgroup/cpuset/domjudge/cpuset.cpus => Output is 0-23.
I also build runguard after I config cgroups.
But I only can run 8 judgedaemon. From judge 9th, if it compile any code, I will receive this error:
Compiling failed with exitcode 255, compiler output: /domjudge/judgehost/bin/runguard: illegal user specified: 7809 Try `/domjudge/judgehost/bin/runguard --help' for more information.
I set all user is user that I run domjudge. But judge 8 judge can compile well.
Please help me! Thank you!
DOMjudge-devel mailing list DOMjudge-devel@domjudge.org https://www.domjudge.org/mailman/listinfo/domjudge-devel
Yeah,
Thanks for your help! Everything is OK! I can run 20 judges now!
Best regard, Linh
On Fri, May 13, 2016 at 12:58 AM, Jaap Eldering eldering@a-eskwadraat.nl wrote:
Hi Linh,
Ah, that's because we only hardcoded 8 users in etc/runguard-config.h. You should edit that file and add extra users, then recompile runguard and things should work.
Note that if you also rerun configure, then you should edit etc/runguard-config.h.in instead, since the first is generated from that file.
Jaap
On 12-05-16 13:58, Vũ Linh Nguyễn wrote:
Hi,
I have a problem when I try to run multi-core judgedaemon.
I followed your document. I setup cgroups, edit etc/cgroup-domjudge.conf:
-- Change cpuset.cpus = 0 => cpuset.= 0-22;
I also add file misctools/create_cgroups to
/etc/cgconf.d/cgroup-domjudge.
After that, I check /cgroup/cpuset/domjudge/cpuset.cpus => Output is
0-23.
I also build runguard after I config cgroups.
But I only can run 8 judgedaemon. From judge 9th, if it compile any code, I will receive this error:
Compiling failed with exitcode 255, compiler output: /domjudge/judgehost/bin/runguard: illegal user specified: 7809 Try `/domjudge/judgehost/bin/runguard --help' for more information.
I set all user is user that I run domjudge. But judge 8 judge can compile well.
Please help me! Thank you!
DOMjudge-devel mailing list DOMjudge-devel@domjudge.org https://www.domjudge.org/mailman/listinfo/domjudge-devel
DOMjudge-devel mailing list DOMjudge-devel@domjudge.org https://www.domjudge.org/mailman/listinfo/domjudge-devel
On Thu, May 12, 2016 19:58, Jaap Eldering wrote:
Ah, that's because we only hardcoded 8 users in etc/runguard-config.h. You should edit that file and add extra users, then recompile runguard and things should work.
Should we maybe change this to make it a prefix-match? So to accept anything named ^domjudge-run.* as a valid runuser?
Cheers, Thijs
On 13-05-16 05:42, Thijs Kinkhorst wrote:
On Thu, May 12, 2016 19:58, Jaap Eldering wrote:
Ah, that's because we only hardcoded 8 users in etc/runguard-config.h. You should edit that file and add extra users, then recompile runguard and things should work.
Should we maybe change this to make it a prefix-match? So to accept anything named ^domjudge-run.* as a valid runuser?
Yes, sounds good. I've implemented this at my layover in Abu Dhabi, just need to test a bit more.
Jaap