Skip to content

Commit eb9d9b1

Browse files
change cpu quota
1 parent d7aba73 commit eb9d9b1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

backend/internal/grader/compile_user_code.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ func CompileUserCode(ctx context.Context, gr types.GradeRequest, tmpDir string)
6666
Resources: container.Resources{
6767
Memory: CompilationMemoryLimit,
6868
MemorySwap: CompilationMemoryLimit,
69-
CPUQuota: 10000,
69+
CPUQuota: 100000,
7070
},
7171
}, nil, nil, "")
7272

backend/internal/grader/exec_user_code.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ func ExecUserCode(ctx context.Context, gr types.GradeRequest, tmpDir string) (*E
6868
Resources: container.Resources{
6969
Memory: int64(testcaseConf.RuntimeOptions.MemoryLimit) * 1024 * 1024,
7070
MemorySwap: int64(testcaseConf.RuntimeOptions.MemoryLimit) * 1024 * 1024,
71-
CPUQuota: 10000,
71+
CPUQuota: 100000,
7272
},
7373
}, nil, nil, "")
7474
if err != nil {

0 commit comments

Comments
 (0)