Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
Signed-off-by: Satoru Takeuchi <[email protected]>
  • Loading branch information
satoru-takeuchi committed Aug 14, 2022
1 parent 42835ff commit c1e740d
Show file tree
Hide file tree
Showing 48 changed files with 16 additions and 117 deletions.
Binary file removed 01-operating-system-overview/hello
Binary file not shown.
File renamed without changes.
Binary file removed 01-operating-system-overview/pause
Binary file not shown.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
fi

for ((i=0;i<CONCURRENCY;i++)) do
time "${SCRIPT_DIR}/load" &
time "${SCRIPT_DIR}/load.py" &
done

for ((i=0;i<CONCURRENCY;i++)) do
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/python3

import sys
import plot
import plot_sched

def usage():
print("""使い方: sched <最大プロセス数>
Expand All @@ -16,5 +16,5 @@ def usage():
usage()

max_nproc = int(sys.argv[1])
plot.plot_avg_tat(max_nproc)
plot.plot_throughput(max_nproc)
plot_sched.plot_avg_tat(max_nproc)
plot_sched.plot_throughput(max_nproc)
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import sys
import time
import os
import plot
import plot_sched

def usage():
print("""使い方: {} <nice値>
Expand Down Expand Up @@ -68,4 +68,4 @@ def child_fn(n):
for i in range(concurrency):
os.wait()

plot.plot_sched(concurrency)
plot_sched.plot_sched(concurrency)
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import sys
import time
import os
import plot
import plot_sched

def usage():
print("""使い方: sched <プロセス数>
Expand Down Expand Up @@ -64,4 +64,4 @@ def child_fn(n):
for i in range(concurrency):
os.wait()

plot.plot_sched(concurrency)
plot_sched.plot_sched(concurrency)
2 changes: 0 additions & 2 deletions 03-process-scheduler/src/.gitignore

This file was deleted.

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Binary file removed 04-memory-management/mmap
Binary file not shown.
Binary file removed 04-memory-management/segv
Binary file not shown.
Binary file removed 04-memory-management/segv-c
Binary file not shown.
File renamed without changes.
3 changes: 0 additions & 3 deletions 05-process-management-2/inc-lock

This file was deleted.

3 changes: 3 additions & 0 deletions 05-process-management-2/inc-lock.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/bash

flock lock ./inc.sh
File renamed without changes.
File renamed without changes.
File renamed without changes.
40 changes: 0 additions & 40 deletions 05-process-management-2/processes.c

This file was deleted.

File renamed without changes.
38 changes: 0 additions & 38 deletions 05-process-management-2/threads.c

This file was deleted.

Binary file removed 07-filesystem/filemap
Binary file not shown.
1 change: 0 additions & 1 deletion 07-filesystem/testfile

This file was deleted.

Binary file removed 08-storage-hierarchy/cache
Binary file not shown.
2 changes: 1 addition & 1 deletion 08-storage-hierarchy/cache.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ func main() {
end := time.Since(start)
f.Write([]byte(fmt.Sprintf("%f\t%f\n", i, float64(NACCESS)/float64(end.Nanoseconds()))))
}
command := exec.Command("./plot")
command := exec.Command("./plot-cache.py")
out, err := command.Output()
if err != nil {
fmt.Fprintf(os.Stderr, "コマンド実行に失敗しました: %q: %q", err, string(out))
Expand Down
Binary file removed 08-storage-hierarchy/cache.jpg
Binary file not shown.
20 changes: 0 additions & 20 deletions 08-storage-hierarchy/out.txt

This file was deleted.

File renamed without changes.
2 changes: 1 addition & 1 deletion 09-block-layer/measure → 09-block-layer/measure.sh
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,6 @@ for SCHED in ${SCHEDULERS} ; do
done
done

./plot
./plot-block.py

rm ${DATA_FILE}
File renamed without changes.
File renamed without changes.
File renamed without changes.
6 changes: 3 additions & 3 deletions 10-virtualization/sched2 → 10-virtualization/sched-virt.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
import sys
import time
import os
import plot
import plot_sched_virt

def usage():
print("""使い方: {} <並列度>
* 論理CPU0上で<並列度>の数だけ同時に100ミリ秒程度CPUリソースを消費する負荷処理を起動した後に、すべてのプロセスの終了を待つ。
* "<処理の番号(0~(並列度-1)>.jpg"というファイルに実行結果を示したグラフを書き出す。
* "sched-<処理の番号(0~(並列度-1)>.jpg"というファイルに実行結果を示したグラフを書き出す。
* グラフのx軸はプロセス開始からの経過時間[ミリ秒]、y軸は進捗[%]""".format(progname, file=sys.stderr))
sys.exit(1)

Expand Down Expand Up @@ -66,4 +66,4 @@ def child_fn(n):
for i in range(concurrency):
os.wait()

plot.plot_sched(concurrency)
plot_sched_virt.plot_sched(concurrency)
File renamed without changes.

0 comments on commit c1e740d

Please sign in to comment.