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
-- *---------------------------------------------------------------------------------------------* *Nguyễn Vũ Linh - Sói Hoang* Software/Website/Game Developer - AI, PTS, Corel, AE Designer ...................... Phone: 0963.203.813 Website: http://ww-solution.me Email: linhnv2110@gmail.com | nguyen.vu.linh321@gmail.com ............................. Facebook: http://facebook.com/linhnv2110 Skype: linhnv2110@gmail.com
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
participants (4)
-
Jaap Eldering -
Jaap Eldering -
Thijs Kinkhorst -
Vũ Linh Nguyễn