feat: add file size option for runner #9
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
변경점
Runner에서
write를 통해 컨테이너 내에서 파일 쓰기가 가능한 상태입니다.따라서 과도한 디스크 사용을 막기 위해 isolate의 fsize 옵션을
10240(10MB)로 설정했습니다. 참고로 파일 개수 제한은 기본적으로 64개이기 때문에 무제한 파일 생성을 통한 과도한 디스크 사용은 최대 640MB일 것으로 예상됩니다.테스트 결과
10GB의 파일을 write 하는 프로그램 실행
전
skkuding@skkuding-4f-1:~$ df -h / Filesystem Size Used Avail Use% Mounted on /dev/sda2 3.6T 39G 3.4T 2% /후
skkuding@skkuding-4f-1:~$ df -h / Filesystem Size Used Avail Use% Mounted on /dev/sda2 3.6T 45G 3.4T 2% /