Compare commits
94 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 6667321dc1 | |||
| f849745b60 | |||
| 78bc06d998 | |||
| d726bd3d11 | |||
| df37d6867f | |||
| a4b5410d0c | |||
| d73e6a161c | |||
| 67334b65c3 | |||
| fe3992a3a2 | |||
| 5d58100c20 | |||
| 1b106d825c | |||
| a680395093 | |||
| fd5a1c4b0a | |||
| b3b1883ad8 | |||
| 7145c4d383 | |||
| 0b82c8942b | |||
| 75694152f0 | |||
| 1cf0bd5a78 | |||
| 25943634e9 | |||
| 72f95f92f8 | |||
| ab1014863d | |||
| 4cd7051c2d | |||
| d5716d3c3a | |||
| 2a984a12fe | |||
| 3949ab65a8 | |||
| ed923ac82f | |||
| 191e6f7499 | |||
| 4f7fd90300 | |||
| 8f2c8791bf | |||
| bbfb296c26 | |||
| 10b17e230c | |||
| b268c28e7e | |||
| 2fa1c053d7 | |||
| 530110e3a9 | |||
| f6ed44aeec | |||
| 33dd2e60b1 | |||
| ed670c03af | |||
| e5f4a4e87d | |||
| 1918df7765 | |||
| 5d784f3ea4 | |||
| 10c09aa10e | |||
| 41f5c0bdde | |||
| e7b8aeb4f7 | |||
| 1b3dd45dbc | |||
| 623d6f8bc3 | |||
| 92902d36fc | |||
| fe83deb3db | |||
| e056cb799f | |||
| 201f5ce500 | |||
| 100bbe6231 | |||
| fbd121d28c | |||
| d1d93d90cc | |||
| 45bc6a617a | |||
| 924ba7fd65 | |||
| 2814f7cac4 | |||
| b510de7bd5 | |||
| 3e927f61dc | |||
| 64579830dd | |||
| 3cc98883f5 | |||
| 442045a320 | |||
| fe5d8fc71f | |||
| 550c6cc5fb | |||
| 8c0b2ab6ce | |||
| 239b1b265f | |||
| f646fd141b | |||
| 734d1cc056 | |||
| 040a9c0c7f | |||
| 8784ee4710 | |||
| 3a761c138e | |||
| e21a3a5af3 | |||
| cd33c88025 | |||
| d78a0fb74c | |||
| 9f815324a4 | |||
| 2748f06c1f | |||
| a7f892113a | |||
| 89c696afc5 | |||
| e17e86840b | |||
| 0de6c6b8f9 | |||
| 5ffad78b87 | |||
| 542418b1fc | |||
| b95a2fcfab | |||
| 1b11496f26 | |||
| 7c0e624b13 | |||
| 0b66bab992 | |||
| 63ed4e7af0 | |||
| d7cf39883f | |||
| 40f8091fab | |||
| a20e1acf01 | |||
| b3d7bbda56 | |||
| 9a60997ea0 | |||
| 4b66373813 | |||
| b44b11ace7 | |||
| ebc91cea0e | |||
| 58106d791a |
@ -7,9 +7,9 @@ endif (NOT CMAKE_BUILD_TYPE)
|
||||
enable_language(C ASM)
|
||||
|
||||
project(mckernel C ASM)
|
||||
set(MCKERNEL_VERSION "1.7.0")
|
||||
set(MCKERNEL_VERSION "1.7.1")
|
||||
|
||||
# See "Fedora Packaging Guidlines -- Versioning"
|
||||
# See "Fedora Packaging Guidelines -- Versioning"
|
||||
set(MCKERNEL_RELEASE "0.6")
|
||||
|
||||
set(CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake/modules)
|
||||
@ -50,6 +50,48 @@ if (ENABLE_WERROR)
|
||||
add_compile_options("-Werror")
|
||||
endif(ENABLE_WERROR)
|
||||
|
||||
execute_process(COMMAND bash -c "ls -ld /proc/tofu/ 2>/dev/null | wc -l"
|
||||
OUTPUT_VARIABLE PROC_TOFU OUTPUT_STRIP_TRAILING_WHITESPACE)
|
||||
|
||||
if(PROC_TOFU STREQUAL "1")
|
||||
option(ENABLE_TOFU "Built-in tofu driver support" ON)
|
||||
else()
|
||||
option(ENABLE_TOFU "Built-in tofu driver support" OFF)
|
||||
endif()
|
||||
|
||||
if(ENABLE_TOFU)
|
||||
add_definitions(-DENABLE_TOFU)
|
||||
set(KBUILD_C_FLAGS "${KBUILD_C_FLAGS} -DENABLE_TOFU")
|
||||
endif()
|
||||
|
||||
# when compiling on a compute-node
|
||||
execute_process(COMMAND bash -c "grep $(hostname) /etc/opt/FJSVfefs/config/fefs_node1.csv 2>/dev/null | cut -d, -f2"
|
||||
OUTPUT_VARIABLE FUGAKU_NODE_TYPE OUTPUT_STRIP_TRAILING_WHITESPACE)
|
||||
if(FUGAKU_NODE_TYPE STREQUAL "CN")
|
||||
option(ENABLE_FUGAKU_HACKS "Fugaku hacks" ON)
|
||||
else()
|
||||
option(ENABLE_FUGAKU_HACKS "Fugaku hacks" OFF)
|
||||
endif()
|
||||
|
||||
if(ENABLE_FUGAKU_HACKS)
|
||||
add_definitions(-DENABLE_FUGAKU_HACKS)
|
||||
set(KBUILD_C_FLAGS "${KBUILD_C_FLAGS} -DENABLE_FUGAKU_HACKS")
|
||||
endif()
|
||||
|
||||
# SIGSTOP instead of SIGSEGV, additional IHK Linux kmsg
|
||||
option(ENABLE_FUGAKU_DEBUG "Fugaku debug instrumentation" OFF)
|
||||
|
||||
if(ENABLE_FUGAKU_DEBUG)
|
||||
add_definitions(-DENABLE_FUGAKU_DEBUG)
|
||||
set(KBUILD_C_FLAGS "${KBUILD_C_FLAGS} -DENABLE_FUGAKU_DEBUG")
|
||||
endif()
|
||||
|
||||
option(PROFILE_ENABLE "System call profile" ON)
|
||||
if(PROFILE_ENABLE)
|
||||
add_definitions(-DPROFILE_ENABLE)
|
||||
set(KBUILD_C_FLAGS "${KBUILD_C_FLAGS} -DPROFILE_ENABLE")
|
||||
endif()
|
||||
|
||||
option(ENABLE_LINUX_WORK_IRQ_FOR_IKC "Use Linux work IRQ for IKC IPI" ON)
|
||||
if (ENABLE_LINUX_WORK_IRQ_FOR_IKC)
|
||||
set(KBUILD_C_FLAGS "${KBUILD_C_FLAGS} -DIHK_IKC_USE_LINUX_WORK_IRQ")
|
||||
@ -252,6 +294,10 @@ message("KBUILD_C_FLAGS: ${KBUILD_C_FLAGS}")
|
||||
message("MAP_KERNEL_START: ${MAP_KERNEL_START}")
|
||||
message("ENABLE_MEMDUMP: ${ENABLE_MEMDUMP}")
|
||||
message("ENABLE_PERF: ${ENABLE_PERF}")
|
||||
message("ENABLE_TOFU: ${ENABLE_TOFU}")
|
||||
message("ENABLE_FUGAKU_HACKS: ${ENABLE_FUGAKU_HACKS}")
|
||||
message("ENABLE_FUGAKU_DEBUG: ${ENABLE_FUGAKU_DEBUG}")
|
||||
message("PROFILE_ENABLE: ${PROFILE_ENABLE}")
|
||||
message("ENABLE_RUSAGE: ${ENABLE_RUSAGE}")
|
||||
message("ENABLE_QLMPI: ${ENABLE_QLMPI}")
|
||||
message("ENABLE_UTI: ${ENABLE_UTI}")
|
||||
|
||||
540
NEWS.md
540
NEWS.md
@ -1,540 +0,0 @@
|
||||
=============================================
|
||||
What's new in version 1.7.0rc4 (Apr 15, 2020)
|
||||
=============================================
|
||||
|
||||
----------------------
|
||||
McKernel major updates
|
||||
----------------------
|
||||
1. arm64: Contiguous PTE support
|
||||
2. arm64: Scalable Vector Extension (SVE) support
|
||||
3. arm64: PMU overflow interrupt support
|
||||
4. xpmem: Support large page attachment
|
||||
5. arm64 port: Direct access to Mckernel memory from Linux
|
||||
6. arm64 port: utility thread offloading, which spawns thread onto
|
||||
Linux CPU
|
||||
7. eclair: support for live debug
|
||||
8. Crash utility extension
|
||||
9. Replace mcoverlayfs with a soft userspace overlay
|
||||
10. Build system is switched to cmake
|
||||
11. Core dump includes thread information
|
||||
|
||||
------------------------
|
||||
McKernel major bug fixes
|
||||
------------------------
|
||||
1. shmobj: Fix rusage counting for large page
|
||||
2. mcctrl control: task start_time changed to u64 nsec
|
||||
3. mcctrl: add handling for one more level of page tables
|
||||
4. Add kernel argument to turn on/off time sharing
|
||||
5. flatten_string/process env: realign env and clear trailing bits
|
||||
6. madvise: Add MADV_HUGEPAGE support
|
||||
8. mcctrl: remove in-kernel calls to syscalls
|
||||
9. arch_cpu_read_write_register: error return fix.
|
||||
10. set_cputime(): interrupt enable/disable fix.
|
||||
11. set_mempolicy(): Add mode check.
|
||||
12. mbind(): Fix memory_range_lock deadlock.
|
||||
13. ihk_ikc_recv: Record channel to packet for release
|
||||
14. Add set_cputime() kernel to kernel case and mode enum.
|
||||
15. execve: Call preempt_enable() before error-exit
|
||||
16. memory/x86_64: fix linux safe_kernel_map
|
||||
17. do_kill(): fix pids table when nr of threads is larger than num_processors
|
||||
18. shmget: Use transparent huge pages when page size isn't specified
|
||||
19. prctl: Add support for PR_SET_THP_DISABLE and PR_GET_THP_DISABLE
|
||||
20. monitor_init: fix undetected hang on highest numbered core
|
||||
21. init_process_stack: change premapped stack size based on arch
|
||||
22. x86 syscalls: add a bunch of XXat() delegated syscalls
|
||||
23. do_pageout: fix direct kernel-user access
|
||||
24. stack: add hwcap auxval
|
||||
25. perf counters: add arch-specific perf counters
|
||||
26. Added check of nohost to terminate_host().
|
||||
27. kmalloc: Fix address order in free list
|
||||
28. sysfs: use nr_cpu_ids for cpumasks (fixes libnuma parsing error on ARM)
|
||||
29. monitor_init: Use ihk_mc_cpu_info()
|
||||
30. Fix ThunderX2 write-combined PTE flag insanity
|
||||
31. ARM: eliminate zero page mapping (i.e, init_low_area())
|
||||
32. eliminate futex_cmpxchg_enabled check (not used and dereffed a NULL pointer)
|
||||
33. page_table: Fix return value of lookup_pte when ptl4 is blank
|
||||
34. sysfs: add missing symlinks for cpu/node
|
||||
35. Make Linux handler run when mmap to procfs.
|
||||
36. Separate mmap area from program loading (relocation) area
|
||||
37. move rusage into kernel ELF image (avoid dynamic alloc before NUMA init)
|
||||
38. arm: turn off cpu on panic
|
||||
39. page fault handler: protect thread accesses
|
||||
40. Register PPD and release_handler at the same time.
|
||||
41. fix to missing exclusive processing between terminate() and
|
||||
finalize_process().
|
||||
42. perfctr_stop: add flags to no 'disable_intens'
|
||||
43. fileobj, shmobj: free pages in object destructor (as opposed to page_unmap())
|
||||
44. clear_range_l1, clear_range_middle: Fix handling contiguous PTE
|
||||
45. do_mmap: don't pre-populate the whole file when asked for smaller segment
|
||||
46. invalidate_one_page: Support shmobj and contiguous PTE
|
||||
47. ubsan: fix undefined shifts
|
||||
48. x86: disable zero mapping and add a boot pt for ap trampoline
|
||||
49. rusage: Don't count PF_PATCH change
|
||||
50. Fixed time processing.
|
||||
51. copy_user_pte: vmap area not owned by McKernel
|
||||
52. gencore: Zero-clear ELF header and memory range table
|
||||
53. rpm: ignore CMakeCache.txt in dist and relax BuildRequires on cross build
|
||||
54. gencore: Allocate ELF header to heap instead of stack
|
||||
55. nanosleep: add cpu_pause() in spinwait loop
|
||||
56. init_process: add missing initializations to proc struct
|
||||
57. rus_vm_fault: always use a packet on the stack
|
||||
58. process stack: use PAGE_SIZE in aux vector
|
||||
59. copy_user_pte: base memobj copy on range & VR_PRIVATE
|
||||
60. arm64: ptrace: Fix overwriting 1st argument with return value
|
||||
61. page fault: use cow for private device mappings
|
||||
62. reproductible builds: remove most install paths in c code
|
||||
63. page fault: clear writable bit for non-dirtying access to shared ranges
|
||||
64. mcreboot/mcstop+release: support for regular user execution
|
||||
65. irqbalance_mck: replace extra service with service drop-in
|
||||
66. do_mmap: give addr argument a chance even if not MAP_FIXED
|
||||
67. x86: fix xchg() and cmpxchg() macros
|
||||
68. IHK: support for using Linux work IRQ as IKC interrupt (optional)
|
||||
69. MCS: fix ARM64 issue by using smp_XXX() functions (i.e., barrier()s)
|
||||
70. procfs: add number of threads to stat and status
|
||||
71. memory_range_lock: Fix deadlock in procfs/sysfs handler
|
||||
72. flush instruction cache at context switch time if necessary
|
||||
73. arm64: Fix PMU related functions
|
||||
74. page_fault_process_memory_range: Disable COW for VM region with zeroobj
|
||||
75. extend_process_region: Fall back to demand paging when not contiguous
|
||||
76. munmap: fix deadlock with remote pagefault on vm range lock
|
||||
77. procfs: if memory_range_lock fails, process later
|
||||
78. migrate-cpu: Prevent migration target from calling schedule() twice
|
||||
79. sched_request_migrate(): fix race condition between migration req and IRQs
|
||||
80. get_one_cpu_topology: Renumber core_id (physical core id)
|
||||
81. bb7e140 procfs cpuinfo: use sequence number as processor
|
||||
82. set_host_vma(): do NOT read protect Linux VMA
|
||||
|
||||
===========================================
|
||||
What's new in V1.6.0 (Nov 11, 2018)
|
||||
===========================================
|
||||
|
||||
-----------------------------------------------
|
||||
McKernel new features, improvements and changes
|
||||
-----------------------------------------------
|
||||
1. McKernel and Linux share one unified kernel virtual address space.
|
||||
That is, McKernel sections resides in Linux sections spared for
|
||||
modules. In this way, Linux can access the McKernel kernel memory
|
||||
area.
|
||||
2. hugetlbfs support
|
||||
3. IHK is now included as a git submodule
|
||||
4. Debug messages are turned on/off in per souce file basis at run-time.
|
||||
5. It's prohibited for McKernel to access physical memory ranges which
|
||||
Linux didn't give to McKernel.
|
||||
6. UTI (capability to spawn a thread on Linux CPU) improvement:
|
||||
* System calls issued from the thread are hooked by modifying
|
||||
binary in memory.
|
||||
|
||||
---------------------------
|
||||
McKernel bug fixes (digest)
|
||||
---------------------------
|
||||
#<num> below corresponds to the redmine issue number
|
||||
(https://postpeta.pccluster.org/redmine/).
|
||||
|
||||
1. #926: shmget: Hide object with IPC_RMID from shmget
|
||||
2. #1028: init_process: Inherit parent cpu_set
|
||||
3. #995: Fix shebang recorded in argv[0]
|
||||
4. #1024: Fix VMAP virtual address leak
|
||||
5. #1109: init_process_stack: Support "ulimit -s unlimited"
|
||||
6. x86 mem init: do not map identity mapping
|
||||
7. mcexec_wait_syscall: requeue potential request on interrupted wait
|
||||
8. mcctrl_ikc_send_wait: fix interrupt with do_frees == NULL
|
||||
9. pager_req_read: handle short read
|
||||
10. kprintf: only call eventfd() if it is safe to interrupt
|
||||
11. process_procfs_request: Add Pid to /proc/<PID>/status
|
||||
12. terminate: fix oversubscribe hang when waiting for other threads on same CPU to die
|
||||
13. mcexec: Do not close fd returned to mckernel side
|
||||
14. #976: execve: Clear sigaltstack and fp_regs
|
||||
15. #1002: perf_event: Specify counter by bit_mask on start/stop
|
||||
16. #1027: schedule: Don't reschedule immediately when wake up on migrate
|
||||
17. #mcctrl: lookup unexported symbols at runtime
|
||||
18. __sched_wakeup_thread: Notify interrupt_exit() of re-schedule
|
||||
19. futex_wait_queue_me: Spin-sleep when timeout and idle_halt is specified
|
||||
20. #1167: ihk_os_getperfevent,setperfevent: Timeout IKC sent by mcctrl
|
||||
21. devobj: fix object size (POSTK_DEBUG_TEMP_FIX_36)
|
||||
22. mcctrl: remove rus page cache
|
||||
23. #1021: procfs: Support multiple reads of e.g. /proc/*/maps
|
||||
24. #1006: wait: Delay wake-up parent within switch context
|
||||
25. #1164: mem: Check if phys-mem is within the range of McKernel memory
|
||||
26. #1039: page_fault_process_memory_range: Remove ihk_mc_map_virtual for CoW of device map
|
||||
27. partitioned execution: pass process rank to LWK
|
||||
28. process/vm: implement access_ok()
|
||||
29. spinlock: rewrite spinlock to use Linux ticket head/tail format
|
||||
30. #986: Fix deadlock involving mmap_sem and memory_range_lock
|
||||
31. Prevent one CPU from getting chosen by concurrent forks
|
||||
32. #1009: check_signal: system call restart is done only once
|
||||
33. #1176: syscall: the signal received during system call processing is not processed.
|
||||
34. #1036 syscall_time: Handle by McKernel
|
||||
35. #1165 do_syscall: Delegate system calls to the mcexec with the same pid
|
||||
36. #1194 execve: Fix calling ptrace_report_signal after preemption is disabled
|
||||
37. #1005 coredump: Exclude special areas
|
||||
38. #1018 procfs: Fix pread/pwrite to procfs fail when specified size is bigger than 4MB
|
||||
39. #1180 sched_setaffinity: Check migration after decrementing in_interrupt
|
||||
40. #771, #1179, #1143 ptrace supports threads
|
||||
41. #1189 procfs/do_fork: wait until procfs entries are registered
|
||||
42. #1114 procfs: add '/proc/pid/stat' to mckernel side and fix its comm
|
||||
43. #1116 mcctrl procfs: check entry was returned before using it
|
||||
44. #1167 ihk_os_getperfevent,setperfevent: Return -ETIME when IKC timeouts
|
||||
45. mcexec/execve: fix shebangs handling
|
||||
46. procfs: handle 'comm' on mckernel side
|
||||
47. ihk_os_setperfevent: Return number of registered events
|
||||
48. mcexec: fix terminating zero after readlink()
|
||||
|
||||
===========================================
|
||||
What's new in V1.5.1 (July 9, 2018)
|
||||
===========================================
|
||||
|
||||
-----------------------------------------------
|
||||
McKernel new features, improvements and changes
|
||||
-----------------------------------------------
|
||||
1. Watchdog timer to detect hang of McKernel
|
||||
mcexec prints out the following line to its stderr when a hang of
|
||||
McKernel is detected.
|
||||
|
||||
mcexec detected hang of McKernel
|
||||
|
||||
The watchdog timer is enabled by passing -i <timeout_in_sec> option
|
||||
to mcreboot.sh. <timeout_in_sec> specifies the interval of checking
|
||||
if McKernel is alive.
|
||||
Example: mcreboot.sh -i 600: Detect the hang with 10 minutes interval
|
||||
|
||||
The detailed step of the hang detection is as follows.
|
||||
(1) mcexec acquires eventfd for notification from IHK and perform
|
||||
epoll() on it.
|
||||
(2) A daemon called ihkmond monitors the state of McKernel periodically
|
||||
with the interval specified by the -i option. It judges that
|
||||
McKernel is hanging and notifies mcexec by the eventfd if its
|
||||
state hasn't changed since the last check.
|
||||
|
||||
2. Documentation
|
||||
man page: Installed directory is changed to <install_dir>/share/man
|
||||
|
||||
---------------------------
|
||||
McKernel bug fixes (digest)
|
||||
---------------------------
|
||||
1. #1146: pager_req_map(): do not take mmap_sem if not needed
|
||||
2. #1135: prepare_process_ranges_args_envs(): fix saving cmdline
|
||||
3. #1144: fileobj/devobj: record path name
|
||||
4. #1145: fileobj: use MCS locks for per-file page hash
|
||||
5. #1076: mcctrl: refactor prepare_image into new generic ikc send&wait
|
||||
6. #1072: execve: fix execve with oversubscribing
|
||||
7. #1132: execve: use thread variable instead of cpu_local_var(current)
|
||||
8. #1117: mprotect: do not set page table writable for cow pages
|
||||
9. #1143: syscall wait4: add _WALL (POSTK_DEBUG_ARCH_DEP_44)
|
||||
10. #1064: rusage: Fix initialization of rusage->num_processors
|
||||
11. #1133: pager_req_unmap: Put per-process data at exit
|
||||
12. #731: do_fork: Propagate error code returned by mcexec
|
||||
13. #1149: execve: Reinitialize vm_regions's map area on execve
|
||||
14. #1065: procfs: Show file names in /proc/<PID>/maps
|
||||
15. #1112: mremap: Fix type of size arguments (from ssize_t to size_t)
|
||||
16. #1121: sched_getaffinity: Check arguments in the same order as in Linux
|
||||
17. #1137: mmap, mremap: Check arguments in the same order as in Linux
|
||||
18. #1122: fix return value of sched_getaffinity
|
||||
19. #732: fix: /proc/<PID>/maps outputs a unnecessary NULL character
|
||||
|
||||
===================================
|
||||
What's new in V1.5.0 (Apr 5, 2018)
|
||||
===================================
|
||||
|
||||
--------------------------------------
|
||||
McKernel new features and improvements
|
||||
--------------------------------------
|
||||
1. Aid for Linux version migration: Detect /proc, /sys format change
|
||||
between two kernel verions
|
||||
2. Swap out
|
||||
* Only swap-out anonymous pages for now
|
||||
3. Improve support of /proc/maps
|
||||
4. mcstat: Linux tool to show resource usage
|
||||
|
||||
---------------------------
|
||||
McKernel bug fixes (digest)
|
||||
---------------------------
|
||||
1. #727: execve: Fix memory leak when receiving SIGKILL
|
||||
2. #829: perf_event_open: Support PERF_TYPE_HARDWARE and PERF_TYPE_HW_CACHE
|
||||
3. #906: mcexec: Check return code of fork()
|
||||
4. #1038: mcexec: Timeout when incorrect value is given to -n option
|
||||
5. #943 #945 #946 #960 $961: mcexec: Support strace
|
||||
6. #1029: struct thread is not released with stress-test involving signal
|
||||
and futex
|
||||
7. #863 #870: Respond immediately to terminating signal when
|
||||
offloading system call
|
||||
8. #1119: translate_rva_to_rpa(): use 2MB blocks in 1GB pages on x86
|
||||
11. #898: Shutdown OS only after no in-flight IKC exist
|
||||
12. #882: release_handler: Destroy objects as the process which opened it
|
||||
13. #882: mcexec: Make child process exit if the parent is killed during
|
||||
fork()
|
||||
14. #925: XPMEM: Don't destroy per-process object of the parent
|
||||
15. #885: ptrace: Support the case where a process attaches its child
|
||||
16. #1031: sigaction: Support SA_RESETHAND
|
||||
17. #923: rus_vm_fault: Return error when a thread not performing
|
||||
system call offloading causes remote page fault
|
||||
18. #1032 #1033 #1034: getrusage: Fix ru_maxrss, RUSAGE_CHILDREN,
|
||||
ru_stime related bugs
|
||||
19. #1120: getrusage: Fix deadlock on thread->times_update
|
||||
20. #1123: Fix deadlock related to wait_queue_head_list_node
|
||||
21. #1124: Fix deadlock of calling terminate() from terminate()
|
||||
22. #1125: Fix deadlock related to thread status
|
||||
* Related functions are: hold_thread(), do_kill() and terminate()
|
||||
23. #1126: uti: Fix uti thread on the McKernel side blocks others in do_syscall()
|
||||
24. #1066: procfs: Show Linux /proc/self/cgroup
|
||||
25. #1127: prepare_process_ranges_args_envs(): fix generating saved_cmdline to
|
||||
avoid PF in strlen()
|
||||
26. #1128: ihk_mc_map/unmap_virtual(): do proper TLB invalidation
|
||||
27. #1043: terminate(): fix update_lock and threads_lock order to avoid deadlock
|
||||
28. #1129: mcreboot.sh: Save /proc/irq/*/smp_affinity to /tmp/mcreboot
|
||||
29. #1130: mcexec: drop READ_IMPLIES_EXEC from personality
|
||||
|
||||
--------------------
|
||||
McKernel workarounds
|
||||
--------------------
|
||||
1. Forbid CPU oversubscription
|
||||
* It can be turned on by mcreboot.sh -O option
|
||||
|
||||
|
||||
===================================
|
||||
What's new in V1.4.0 (Oct 30, 2017)
|
||||
===================================
|
||||
|
||||
-----------------------------------------------------------
|
||||
Feature: Abstracted event type support in perf_event_open()
|
||||
-----------------------------------------------------------
|
||||
PERF_TYPE_HARDWARE and PERF_TYPE_CACHE types are supported.
|
||||
|
||||
----------------------------------
|
||||
Clean-up: Direct user-space access
|
||||
----------------------------------
|
||||
Code lines using direct user-space access (e.g. passing user-space
|
||||
pointer to memcpy()) becomes more portable across processor
|
||||
architectures. The modification follows the following rules.
|
||||
|
||||
1. Move the code section as it is to the architecture dependent
|
||||
directory if it is a part of the critical-path.
|
||||
2. Otherwise, rewrite the code section by using the portable methods.
|
||||
The methods include copy_from_user(), copy_to_user(),
|
||||
pte_get_phys() and phys_to_virt().
|
||||
|
||||
--------------------------------
|
||||
Test: MPI and OpenMP micro-bench
|
||||
--------------------------------
|
||||
The performance figures of MPI and OpenMP primitives are compared with
|
||||
those of Linux by using Intel MPI Benchmarks and EPCC OpenMP Micro
|
||||
Benchmark.
|
||||
|
||||
|
||||
===================================
|
||||
What's new in V1.3.0 (Sep 30, 2017)
|
||||
===================================
|
||||
|
||||
--------------------
|
||||
Feature: Kernel dump
|
||||
--------------------
|
||||
1. A dump level of "only kernel memory" is added.
|
||||
|
||||
The following two levels are available now:
|
||||
0: Dump all
|
||||
24: Dump only kernel memory
|
||||
|
||||
The dump level can be set by -d option in ihkosctl or the argument
|
||||
for ihk_os_makedumpfile(), as shown in the following examples:
|
||||
|
||||
Command: ihkosctl 0 dump -d 24
|
||||
Function call: ihk_os_makedumpfile(0, NULL, 24, 0);
|
||||
|
||||
2. Dump file is created when Linux panics.
|
||||
|
||||
The dump level can be set by dump_level kernel argument, as shown in the
|
||||
following example:
|
||||
|
||||
ihkosctl 0 kargs "hidos dump_level=24"
|
||||
|
||||
The IHK dump function is registered to panic_notifier_list when creating
|
||||
/dev/mcdX and called when Linux panics.
|
||||
|
||||
-----------------------------
|
||||
Feature: Quick Process Launch
|
||||
-----------------------------
|
||||
|
||||
MPI process launch time and some of the initialization time can be
|
||||
reduced in application consisting of multiple MPI programs which are
|
||||
launched in turn in the job script.
|
||||
|
||||
The following two steps should be performed to use this feature:
|
||||
1. Replace mpiexec with ql_mpiexec_start and add some lines for
|
||||
ql_mpiexec_finalize in the job script
|
||||
2. Modify the app so that it can repeat calculations and wait for the
|
||||
instructions from ql_mpiexec_{start,finalize} at the end of the
|
||||
loop
|
||||
|
||||
The first step is explained using an example. Assume the original job
|
||||
script looks like this:
|
||||
|
||||
/* Execute ensamble simulation and then data assimilation, and repeat this
|
||||
ten times */
|
||||
for i in {1..10}; do
|
||||
|
||||
/* Each ensamble simulation execution uses 100 nodes, launch ten of them
|
||||
in parallel */
|
||||
for j in {1..10}; do
|
||||
mpiexec -n 100 -machinefile ./list1_$j p1.out a1 & pids[$i]=$!;
|
||||
done
|
||||
|
||||
/* Wait until the ten ensamble simulation programs finish */
|
||||
for j in {1..10}; do wait ${pids[$j]}; done
|
||||
|
||||
/* Launch one data assimilation program using 1000 nodes */
|
||||
mpiexec -n 1000 -machinefile ./list2 p2.out a2
|
||||
done
|
||||
|
||||
The job script should be modified like this:
|
||||
|
||||
for i in {1..10}; do
|
||||
for j in {1..10}; do
|
||||
/* Replace mpiexec with ql_mpiexec_start */
|
||||
ql_mpiexec_start -n 100 -machinefile ./list1_$j p1.out a1 & pids[$j]=$!;
|
||||
done
|
||||
|
||||
for j in {1..10}; do wait ${pids[$j]}; done
|
||||
|
||||
ql_mpiexec_start -n 1000 -machinefile ./list2 p2.out a2
|
||||
done
|
||||
|
||||
/* p1.out and p2.out don't exit but are waiting for the next calculation.
|
||||
So tell them to exit */
|
||||
for j in {1..10}; do
|
||||
ql_mpiexec_finalize -machinefile ./list1_$i p1.out a1;
|
||||
done
|
||||
ql_mpiexec_finalize -machinefile ./list2 p2.out a2;
|
||||
|
||||
|
||||
The second step is explained using a pseudo-code.
|
||||
|
||||
MPI_Init();
|
||||
Prepare data exchange with preceding / following MPI programs
|
||||
loop:
|
||||
foreach Fortran module
|
||||
Initialize data using command-line argments, parameter files,
|
||||
environment variables
|
||||
Input data from preceding MPI programs / Read snap-shot
|
||||
Perform main calculation
|
||||
Output data to following MPI programs / Write snap-shot
|
||||
/* ql_client() waits for command of ql_mpiexec_{start,finish} */
|
||||
if (ql_client() == QL_CONTINUE) { goto loop; }
|
||||
MPI_Finalize();
|
||||
|
||||
qlmpilib.h should be included in the code and libql{mpi,fort}.so
|
||||
should be linked to the executable file.
|
||||
|
||||
|
||||
========================
|
||||
Restrictions on McKernel
|
||||
========================
|
||||
|
||||
1. Pseudo devices such as /dev/mem and /dev/zero are not mmap()ed
|
||||
correctly even if the mmap() returns a success. An access of their
|
||||
mapping receives the SIGSEGV signal.
|
||||
|
||||
2. clone() supports only the following flags. All the other flags
|
||||
cause clone() to return error or are simply ignored.
|
||||
|
||||
* CLONE_CHILD_CLEARTID
|
||||
* CLONE_CHILD_SETTID
|
||||
* CLONE_PARENT_SETTID
|
||||
* CLONE_SETTLS
|
||||
* CLONE_SIGHAND
|
||||
* CLONE_VM
|
||||
|
||||
3. PAPI has the following restriction.
|
||||
|
||||
* Number of counters a user can use at the same time is up to the
|
||||
number of the physical counters in the processor.
|
||||
|
||||
4. msync writes back only the modified pages mapped by the calling process.
|
||||
|
||||
5. The following syscalls always return the ENOSYS error.
|
||||
|
||||
* migrate_pages()
|
||||
* move_pages()
|
||||
* set_robust_list()
|
||||
|
||||
6. The following syscalls always return the EOPNOTSUPP error.
|
||||
|
||||
* arch_prctl(ARCH_SET_GS)
|
||||
* signalfd()
|
||||
|
||||
7. signalfd4() returns a fd, but signal is not notified through the
|
||||
fd.
|
||||
|
||||
8. set_rlimit sets the limit values but they are not enforced.
|
||||
|
||||
9. Address randomization is not supported.
|
||||
|
||||
10. brk() extends the heap more than requestd when -h
|
||||
(--extend-heap-by=)<step> option of mcexec is used with the value
|
||||
larger than 4 KiB. syscall_pwrite02 of LTP would fail for this
|
||||
reason. This is because the test expects that the end of the heap
|
||||
is set to the same address as the argument of sbrk() and expects a
|
||||
segmentation violation occurs when it tries to access the memory
|
||||
area right next to the boundary. However, the optimization sets
|
||||
the end to a value larger than the requested. Therefore, the
|
||||
expected segmentation violation doesn't occur.
|
||||
|
||||
11. setpriority()/getpriority() won't work. They might set/get the
|
||||
priority of a random mcexec thread. This is because there's no
|
||||
fixed correspondence between a McKernel thread which issues the
|
||||
system call and a mcexec thread which handles the offload request.
|
||||
|
||||
12. mbind() can set the policy but it is not used when allocating
|
||||
physical pages.
|
||||
|
||||
13. MPOL_F_RELATIVE_NODES and MPOL_INTERLEAVE flags for
|
||||
set_mempolicy()/mbind() are not supported.
|
||||
|
||||
14. The MPOL_BIND policy for set_mempolicy()/mbind() works as the same
|
||||
as the MPOL_PREFERRED policy. That is, the physical page allocator
|
||||
doesn't give up the allocation when the specified nodes are
|
||||
running out of pages but continues to search pages in the other
|
||||
nodes.
|
||||
|
||||
15. Kernel dump on Linux panic requires Linux kernel CentOS-7.4 and
|
||||
later. In addition, crash_kexec_post_notifiers kernel argument
|
||||
must be given to Linux kernel.
|
||||
|
||||
16. setfsuid()/setfsgid() cannot change the id of the calling thread.
|
||||
Instead, it changes that of the mcexec worker thread which takes
|
||||
the system-call offload request.
|
||||
|
||||
17. mmap (hugeTLBfs): The physical pages corresponding to a map are
|
||||
released when no McKernel process exist. The next map gets fresh
|
||||
physical pages.
|
||||
|
||||
18. Sticky bit on executable file has no effect.
|
||||
|
||||
19. Linux (RHEL-7 for x86_64) could hang when offlining CPUs in the
|
||||
process of booting McKernel due to the Linux bug, found in
|
||||
Linux-3.10 and fixed in the later version. One way to circumvent
|
||||
this is to always assign the same CPU set to McKernel.
|
||||
|
||||
20. madvise:
|
||||
* MADV_HWPOISON and MADV_SOFT_OFFLINE always returns -EPERM.
|
||||
* MADV_MERGEABLE and MADV_UNMERGEABLE always returns -EINVAL.
|
||||
* MADV_HUGEPAGE and MADV_NOHUGEPAGE on file map returns -EINVAL
|
||||
(It succeeds on RHEL-8 for aarch64).
|
||||
|
||||
21. brk() and mmap() doesn't report out-of-memory through its return
|
||||
value. Instead, page-fault reports the error.
|
||||
|
||||
22. Anonymous mmap pre-maps requested number of pages when contiguous
|
||||
pages are available. Demand paging is used when not available.
|
||||
|
||||
23. Mixing page sizes in anonymous shared mapping is not allowed. mmap
|
||||
creates vm_range with one page size. And munmap or mremap that
|
||||
needs the reduced page size changes the sizes of all the pages of
|
||||
the vm_range.
|
||||
|
||||
24. ihk_os_getperfevent() could time-out when invoked from Fujitsu TCS
|
||||
(job-scheduler).
|
||||
|
||||
25. The behaviors of madvise and mbind are changed to do nothing and
|
||||
report success as a workaround for Fugaku.
|
||||
|
||||
26. mmap() allows unlimited overcommit. Note that it corresponds to
|
||||
setting sysctl ``vm.overcommit_memory`` to 1.
|
||||
285
README.md
285
README.md
@ -1,285 +0,0 @@
|
||||

|
||||
-------------------------
|
||||
|
||||
IHK/McKernel is a light-weight multi-kernel operating system designed for high-end supercomputing. It runs Linux and McKernel, a light-weight kernel (LWK), side-by-side inside compute nodes and aims at the following:
|
||||
|
||||
- Provide scalable and consistent execution of large-scale parallel scientific applications, but at the same time maintain the ability to rapidly adapt to new hardware features and emerging programming models
|
||||
- Provide efficient memory and device management so that resource contention and data movement are minimized at the system level
|
||||
- Eliminate OS noise by isolating OS services in Linux and provide jitter free execution on the LWK
|
||||
- Support the full POSIX/Linux APIs by selectively offloading (slow-path) system calls to Linux
|
||||
|
||||
## Contents
|
||||
|
||||
- [Background](#background-and-motivation)
|
||||
- [Architectural Overview](#architectural-overview)
|
||||
- [Installation](#installation)
|
||||
- [The Team](#the-team)
|
||||
|
||||
## Background and Motivation
|
||||
|
||||
With the growing complexity of high-end supercomputers, the current system software stack faces significant challenges as we move forward to exascale and beyond. The necessity to deal with extreme degree of parallelism, heterogeneous architectures, multiple levels of memory hierarchy, power constraints, etc., advocates operating systems that can rapidly adapt to new hardware requirements, and that can support novel programming paradigms and runtime systems. On the other hand, a new class of more dynamic and complex applications are also on the horizon, with an increasing demand for application constructs such as in-situ analysis, workflows, elaborate monitoring and performance tools. This complexity relies not only on the rich features of POSIX, but also on the Linux APIs (such as the */proc*, */sys* filesystems, etc.) in particular.
|
||||
|
||||
|
||||
##### Two Traditional HPC OS Approaches
|
||||
|
||||
Traditionally, light-weight operating systems specialized for HPC followed two approaches to tackle scalable execution of large-scale applications. In the full weight kernel (FWK) approach, a full Linux environment is taken as the basis, and features that inhibit attaining HPC scalability are removed, i.e., making it light-weight. The pure light-weight kernel (LWK) approach, on the other hand, starts from scratch and effort is undertaken to add sufficient functionality so that it provides a familiar API, typically something close to that of a general purpose OS, while at the same time it retains the desired scalability and reliability attributes. Neither of these approaches yields a fully Linux compatible environment.
|
||||
|
||||
|
||||
##### The Multi-kernel Approach
|
||||
|
||||
A hybrid approach recognized recently by the system software community is to run Linux simultaneously with a lightweight kernel on compute nodes and multiple research projects are now pursuing this direction. The basic idea is that simulations run on an HPC tailored lightweight kernel, ensuring the necessary isolation for noiseless execution of parallel applications, but Linux is leveraged so that the full POSIX API is supported. Additionally, the small code base of the LWK can also facilitate rapid prototyping for new, exotic hardware features. Nevertheless, the questions of how to share node resources between the two types of kernels, where do device drivers execute, how exactly do the two kernels interact with each other and to what extent are they integrated, remain subjects of ongoing debate.
|
||||
|
||||
|
||||
|
||||
## Architectural Overview
|
||||
|
||||
At the heart of the stack is a low-level software infrastructure called Interface for Heterogeneous Kernels (IHK). IHK is a general framework that provides capabilities for partitioning resources in a many-core environment (e.g.,CPU cores and physical memory) and it enables management of lightweight kernels. IHK can allocate and release host resources dynamically and no reboot of the host machine is required when altering configuration. IHK also provides a low-level inter-kernel messaging infrastructure, called the Inter-Kernel Communication (IKC) layer. An architectural overview of the main system components is shown below.
|
||||
|
||||
|
||||

|
||||
|
||||
|
||||
McKernel is a lightweight kernel written from scratch. It is designed for HPC and is booted from IHK. McKernel retains a binary compatible ABI with Linux, however, it implements only a small set of performance sensitive system calls and the rest are offloaded to Linux. Specifically, McKernel has its own memory management, it supports processes and multi-threading with a simple round-robin cooperative (tick-less) scheduler, and it implements signaling. It also allows inter-process memory mappings and it provides interfaces to hardware performance counters.
|
||||
|
||||
### Functionality
|
||||
|
||||
An overview of some of the principal functionalities of the IHK/McKernel stack is provided below.
|
||||
|
||||
#### System Call Offloading
|
||||
|
||||
System call forwarding in McKernel is implemented as follows. When an offloaded system call occurs, McKernel marshals the system call number along with its arguments and sends a message to Linux via a dedicated IKC channel. The corresponding proxy process running on Linux is by default waiting for system call requests through an ioctl() call into IHK’s system call delegator kernel module. The delegator kernel module’s IKC interrupt handler wakes up the proxy process, which returns to userspace and simply invokes the requested system call. Once it obtains the return value, it instructs the delegator module to send the result back to McKernel, which subsequently passes the value to user-space.
|
||||
|
||||
#### Unified Address Space
|
||||
|
||||
The unified address space model in IHK/McKernel ensures that offloaded system calls can seamlessly resolve arguments even in case of pointers. This mechanism is depicted below and is implemented as follows.
|
||||
|
||||
|
||||

|
||||
|
||||
|
||||
First, the proxy process is compiled as a position independent binary, which enables us to map the code and data segments specific to the proxy process to an address range which is explicitly excluded from McKernel’s user space. The grey box on the right side of the figure demonstrates the excluded region. Second, the entire valid virtual address range of McKernel’s application user-space is covered by a special mapping in the proxy process for which we use a pseudo file mapping in Linux. This mapping is indicated by the blue box on the left side of the figure.
|
||||
|
||||
|
||||
## Installation
|
||||
|
||||
For a smooth experience, we recommend the following combination of OS distributions and platforms:
|
||||
|
||||
- CentOS 7.3+ running on Intel Xeon / Xeon Phi
|
||||
|
||||
|
||||
##### 1. Change SELinux settings
|
||||
Log in as the root and disable SELinux:
|
||||
|
||||
~~~~
|
||||
vim /etc/selinux/config
|
||||
~~~~
|
||||
|
||||
Change the file to SELINUX=disabled
|
||||
|
||||
##### 2. Reboot the host machine
|
||||
~~~~
|
||||
sudo reboot
|
||||
~~~~
|
||||
|
||||
##### 3. Prepare packages, kernel symbol table file
|
||||
You will need the following packages installed:
|
||||
|
||||
~~~~
|
||||
sudo yum install cmake kernel-devel binutils-devel systemd-devel numactl-devel gcc make nasm git
|
||||
~~~~
|
||||
|
||||
Grant read permission to the System.map file of your kernel version:
|
||||
|
||||
~~~~
|
||||
sudo chmod a+r /boot/System.map-`uname -r`
|
||||
~~~~
|
||||
|
||||
##### 4. Obtain sources and compile the kernel
|
||||
|
||||
Clone the source code:
|
||||
|
||||
~~~~
|
||||
mkdir -p ~/src/ihk+mckernel/
|
||||
cd ~/src/ihk+mckernel/
|
||||
git clone --recursive -b development https://github.com/RIKEN-SysSoft/mckernel.git
|
||||
~~~~
|
||||
|
||||
(Optional) Checkout to the specific branch or version:
|
||||
|
||||
~~~~
|
||||
cd mckernel
|
||||
git checkout <pathspec>
|
||||
git submodule update
|
||||
~~~~
|
||||
|
||||
Foe example, if you want to try the development branch, use "development" as the pathspec. If you want to try the prerelease version 1.7.0-0.2, use "1.7.0-0.2".
|
||||
|
||||
###### 4.1 Install with cmake
|
||||
|
||||
Configure and compile:
|
||||
|
||||
~~~~
|
||||
mkdir -p build && cd build
|
||||
cmake -DCMAKE_INSTALL_PREFIX=${HOME}/ihk+mckernel $HOME/src/ihk+mckernel/mckernel
|
||||
make -j install
|
||||
~~~~
|
||||
|
||||
The IHK kernel modules and McKernel kernel image should be installed under the **ihk+mckernel** folder in your home directory.
|
||||
|
||||
###### 4.2 Install with rpm
|
||||
|
||||
Configure, compile and build rpm:
|
||||
|
||||
~~~~
|
||||
mkdir -p build && cd build
|
||||
cmake $HOME/src/ihk+mckernel/mckernel
|
||||
make dist
|
||||
cp mckernel-<version>.tar.gz <rpmbuild>/SOURCES
|
||||
rpm -ba scripts/mckernel.spec
|
||||
sudo rpm -ivh <rpmbuild>/RPMS/<arch>/mckernel-<version>-<release>_<linux_kernel_ver>_<dist>.<arch>.rpm
|
||||
~~~~
|
||||
|
||||
The IHK kernel modules and McKernel kernel image are installed under the system directory.
|
||||
|
||||
##### 5. Boot McKernel
|
||||
|
||||
A boot script called mcreboot.sh is provided under sbin in the install folder. To boot on logical CPU 1 with 512MB of memory, use the following invocation:
|
||||
|
||||
~~~~
|
||||
export TOP=${HOME}/ihk+mckernel/
|
||||
cd ${TOP}
|
||||
sudo ./sbin/mcreboot.sh -c 1 -m 512m
|
||||
~~~~
|
||||
|
||||
You should see something similar like this if you display the McKernel's kernel message log:
|
||||
|
||||
|
||||
~~~~
|
||||
./sbin/ihkosctl 0 kmsg
|
||||
|
||||
IHK/McKernel started.
|
||||
[ -1]: no_execute_available: 1
|
||||
[ -1]: map_fixed: phys: 0xfee00000 => 0xffff860000009000 (1 pages)
|
||||
[ -1]: setup_x86 done.
|
||||
[ -1]: ns_per_tsc: 385
|
||||
[ -1]: KCommand Line: hidos dump_level=24
|
||||
[ -1]: Physical memory: 0x1ad3000 - 0x21000000, 525520896 bytes, 128301 pages available @ NUMA: 0
|
||||
[ -1]: NUMA: 0, Linux NUMA: 0, type: 1, available bytes: 525520896, pages: 128301
|
||||
[ -1]: NUMA 0 distances: 0 (10),
|
||||
[ -1]: map_fixed: phys: 0x28000 => 0xffff86000000a000 (2 pages)
|
||||
[ -1]: Trampoline area: 0x28000
|
||||
[ -1]: map_fixed: phys: 0x0 => 0xffff86000000c000 (1 pages)
|
||||
[ -1]: # of cpus : 1
|
||||
[ -1]: locals = ffff880001af6000
|
||||
[ 0]: BSP: 0 (HW ID: 1 @ NUMA 0)
|
||||
[ 0]: BSP: booted 0 AP CPUs
|
||||
[ 0]: Master channel init acked.
|
||||
[ 0]: vdso is enabled
|
||||
IHK/McKernel booted.
|
||||
~~~~
|
||||
|
||||
|
||||
##### 5. Run a simple program on McKernel
|
||||
|
||||
The mcexec command line tool (which is also the Linux proxy process) can be used for executing applications on McKernel:
|
||||
|
||||
~~~~
|
||||
./bin/mcexec hostname
|
||||
centos-vm
|
||||
~~~~
|
||||
|
||||
|
||||
##### 6. Shutdown McKernel
|
||||
|
||||
Finally, to shutdown McKernel and release CPU/memory resources back to Linux use the following command:
|
||||
|
||||
~~~~
|
||||
sudo ./sbin/mcstop+release.sh
|
||||
~~~~
|
||||
|
||||
##### 7. Advanced: Enable Utility Thread offloading Interface (UTI)
|
||||
|
||||
UTI enables a runtime such as MPI runtime to spawn utility threads such as MPI asynchronous progress threads to Linux cores.
|
||||
|
||||
1. Install capstone
|
||||
|
||||
Install EPEL capstone-devel:
|
||||
|
||||
~~~~
|
||||
sudo yum install epel-release
|
||||
sudo yum install capstone-devel
|
||||
~~~~
|
||||
|
||||
2. Install syscall_intercept
|
||||
|
||||
~~~~
|
||||
git clone https://github.com/RIKEN-SysSoft/syscall_intercept.git
|
||||
cmake ../arch/aarch64 -DCMAKE_INSTALL_PREFIX=<syscall-intercept-install> -DCMAKE_BUILD_TYPE=Release -DCMAKE_C_COMPILER=gcc -DTREAT_WARNINGS_AS_ERRORS=OFF
|
||||
~~~~
|
||||
|
||||
3. Install UTI for McKernel
|
||||
|
||||
Install:
|
||||
|
||||
~~~~
|
||||
git clone https://github.com/RIKEN-SysSoft/uti.git
|
||||
mkdir build && cd build
|
||||
../uti/configure --prefix=<mckernel-install> --with-rm=mckernel
|
||||
make && make install
|
||||
~~~~
|
||||
|
||||
4. Install McKernel
|
||||
|
||||
~~~~
|
||||
CMAKE_PREFIX_PATH=<syscall-intercept-install> cmake -DCMAKE_INSTALL_PREFIX=${HOME}/ihk+mckernel -DENABLE_UTI=ON $HOME/src/ihk+mckernel/mckernel
|
||||
~~~~
|
||||
|
||||
5. Run executable
|
||||
|
||||
~~~~
|
||||
mcexec --enable-uti <command>
|
||||
~~~~
|
||||
|
||||
6. Install UTI for Linux for performance comparison
|
||||
|
||||
Install by make:
|
||||
|
||||
~~~~
|
||||
git clone https://github.com/RIKEN-SysSoft/uti.git
|
||||
mkdir build && cd build
|
||||
../uti/configure --prefix=<uti-install> --with-rm=linux
|
||||
make && make install
|
||||
~~~~
|
||||
|
||||
Install by rpm:
|
||||
|
||||
~~~~
|
||||
git clone https://github.com/RIKEN-SysSoft/uti.git
|
||||
mkdir build && cd build
|
||||
../uti/configure --prefix=<uti-install> --with-rm=linux
|
||||
rm -f ~/rpmbuild/SOURCES/<version>.tar.gz
|
||||
rpmbuild -ba ./scripts/uti.spec
|
||||
rpm -Uvh uti-<version>-<release>-<arch>.rpm
|
||||
~~~~
|
||||
|
||||
## The Team
|
||||
|
||||
The McKernel project was started at The University of Tokyo and currently it is mainly developed at RIKEN.
|
||||
Some of our collaborators include:
|
||||
|
||||
- Hitachi
|
||||
- Fujitsu
|
||||
- CEA (France)
|
||||
- NEC
|
||||
|
||||
|
||||
## License
|
||||
|
||||
McKernel is GPL licensed, as found in the LICENSE file.
|
||||
|
||||
## Contact
|
||||
|
||||
Please give your feedback to us via one of the following mailing lists. Subscription via [www.pccluster.org](http://www.pccluster.org/mailman/listinfo/mckernel-users) is needed.
|
||||
|
||||
* English: mckernel-users@pccluster.org
|
||||
* Japanese: mckernel-users-jp@pccluster.org
|
||||
23
README.rst
Normal file
23
README.rst
Normal file
@ -0,0 +1,23 @@
|
||||
.. figure:: docs/mckernel-logo.png
|
||||
|
||||
IHK/McKernel is a light-weight multi-kernel operating system designed
|
||||
for high-end supercomputing. It runs Linux and McKernel, a light-weight
|
||||
kernel (LWK), side-by-side inside compute nodes and aims at the
|
||||
following:
|
||||
|
||||
- Provide scalable and consistent execution of large-scale parallel
|
||||
scientific applications, but at the same time maintain the ability to
|
||||
rapidly adapt to new hardware features and emerging programming
|
||||
models
|
||||
- Provide efficient memory and device management so that resource
|
||||
contention and data movement are minimized at the system level
|
||||
- Eliminate OS noise by isolating OS services in Linux and provide
|
||||
jitter free execution on the LWK
|
||||
- Support the full POSIX/Linux APIs by selectively offloading
|
||||
(slow-path) system calls to Linux
|
||||
|
||||
Documentation
|
||||
=============
|
||||
|
||||
Documentation is available
|
||||
`here <https://ihkmckernel.readthedocs.io>`__.
|
||||
@ -143,6 +143,11 @@ void arch_save_panic_regs(void *irq_regs)
|
||||
|
||||
clv = get_arm64_this_cpu_local();
|
||||
|
||||
/* If kernel mode PF occurred, unroll the causing call stack */
|
||||
if (cpu_local_var(kernel_mode_pf_regs)) {
|
||||
regs = cpu_local_var(kernel_mode_pf_regs);
|
||||
}
|
||||
|
||||
/* For user-space, use saved kernel context */
|
||||
if (regs->pc < USER_END) {
|
||||
memset(clv->arm64_cpu_local_thread.panic_regs,
|
||||
@ -725,6 +730,49 @@ static void show_context_stack(struct pt_regs *regs)
|
||||
}
|
||||
}
|
||||
|
||||
#ifdef ENABLE_FUGAKU_HACKS
|
||||
void __show_context_stack(struct thread *thread,
|
||||
unsigned long pc, uintptr_t sp, int kprintf_locked)
|
||||
{
|
||||
uintptr_t stack_top;
|
||||
unsigned long irqflags = 0;
|
||||
|
||||
stack_top = ALIGN_UP(sp, (uintptr_t)KERNEL_STACK_SIZE);
|
||||
|
||||
if (!kprintf_locked)
|
||||
irqflags = kprintf_lock();
|
||||
|
||||
__kprintf("TID: %d, call stack (most recent first):\n",
|
||||
thread->tid);
|
||||
__kprintf("PC: %016lx, SP: %016lx\n", pc, sp);
|
||||
for (;;) {
|
||||
extern char _head[], _end[];
|
||||
uintptr_t *fp, *lr;
|
||||
fp = (uintptr_t *)sp;
|
||||
lr = (uintptr_t *)(sp + 8);
|
||||
|
||||
if ((*fp <= sp)) {
|
||||
break;
|
||||
}
|
||||
|
||||
if ((*fp > stack_top)) {
|
||||
break;
|
||||
}
|
||||
|
||||
if ((*lr < (unsigned long)_head) ||
|
||||
(*lr > (unsigned long)_end)) {
|
||||
break;
|
||||
}
|
||||
|
||||
__kprintf("PC: %016lx, SP: %016lx, FP: %016lx\n", *lr - 4, sp, *fp);
|
||||
sp = *fp;
|
||||
}
|
||||
|
||||
if (!kprintf_locked)
|
||||
kprintf_unlock(irqflags);
|
||||
}
|
||||
#endif
|
||||
|
||||
void handle_IPI(unsigned int vector, struct pt_regs *regs)
|
||||
{
|
||||
struct ihk_mc_interrupt_handler *h;
|
||||
@ -786,6 +834,19 @@ void cpu_safe_halt(void)
|
||||
cpu_enable_interrupt();
|
||||
}
|
||||
|
||||
#ifdef ENABLE_FUGAKU_HACKS
|
||||
/*@
|
||||
@ assigns \nothing;
|
||||
@ ensures \interrupt_disabled == 0;
|
||||
@*/
|
||||
void cpu_halt_panic(void)
|
||||
{
|
||||
extern void __cpu_do_idle(void);
|
||||
cpu_enable_interrupt();
|
||||
__cpu_do_idle();
|
||||
}
|
||||
#endif
|
||||
|
||||
#if defined(CONFIG_HAS_NMI)
|
||||
#include <arm-gic-v3.h>
|
||||
|
||||
@ -851,6 +912,21 @@ unsigned long cpu_enable_interrupt_save(void)
|
||||
return flags;
|
||||
}
|
||||
|
||||
#ifdef ENABLE_FUGAKU_HACKS
|
||||
int cpu_interrupt_disabled(void)
|
||||
{
|
||||
unsigned long flags;
|
||||
unsigned long masked = ICC_PMR_EL1_MASKED;
|
||||
|
||||
asm volatile(
|
||||
"mrs_s %0, " __stringify(ICC_PMR_EL1)
|
||||
: "=&r" (flags)
|
||||
:
|
||||
: "memory");
|
||||
return (flags == masked);
|
||||
}
|
||||
#endif
|
||||
|
||||
#else /* defined(CONFIG_HAS_NMI) */
|
||||
|
||||
/* @ref.impl arch/arm64/include/asm/irqflags.h::arch_local_irq_enable */
|
||||
@ -1372,6 +1448,14 @@ void arch_print_stack(void)
|
||||
{
|
||||
}
|
||||
|
||||
#ifdef ENABLE_FUGAKU_HACKS
|
||||
unsigned long arch_get_instruction_address(const void *reg)
|
||||
{
|
||||
const struct pt_regs *regs = (struct pt_regs *)reg;
|
||||
return regs->pc;
|
||||
}
|
||||
#endif
|
||||
|
||||
void arch_show_interrupt_context(const void *reg)
|
||||
{
|
||||
const struct pt_regs *regs = (struct pt_regs *)reg;
|
||||
|
||||
@ -223,7 +223,12 @@ static int do_translation_fault(unsigned long addr,
|
||||
unsigned int esr,
|
||||
struct pt_regs *regs)
|
||||
{
|
||||
#ifdef ENABLE_TOFU
|
||||
// XXX: Handle kernel space page faults for Tofu driver
|
||||
//if (addr < USER_END)
|
||||
#else
|
||||
if (addr < USER_END)
|
||||
#endif
|
||||
return do_page_fault(addr, esr, regs);
|
||||
|
||||
do_bad_area(addr, esr, regs);
|
||||
|
||||
@ -9,6 +9,9 @@
|
||||
#include "affinity.h"
|
||||
#include <lwk/compiler.h>
|
||||
#include "config.h"
|
||||
#ifdef ENABLE_FUGAKU_HACKS
|
||||
#include <ihk/debug.h>
|
||||
#endif
|
||||
|
||||
//#define DEBUG_SPINLOCK
|
||||
//#define DEBUG_MCS_RWLOCK
|
||||
@ -31,6 +34,10 @@ typedef struct {
|
||||
#endif /* __AARCH64EB__ */
|
||||
} __attribute__((aligned(4))) ihk_spinlock_t;
|
||||
|
||||
#ifdef ENABLE_FUGAKU_HACKS
|
||||
extern ihk_spinlock_t *get_this_cpu_runq_lock(void);
|
||||
#endif
|
||||
|
||||
extern void preempt_enable(void);
|
||||
extern void preempt_disable(void);
|
||||
|
||||
@ -98,6 +105,18 @@ static int __ihk_mc_spinlock_trylock_noirq(ihk_spinlock_t *lock)
|
||||
: "memory");
|
||||
|
||||
success = !tmp;
|
||||
|
||||
#ifdef ENABLE_FUGAKU_HACKS
|
||||
#if 0
|
||||
if (success) {
|
||||
if (get_this_cpu_runq_lock() == lock &&
|
||||
!cpu_interrupt_disabled()) {
|
||||
kprintf("%s: WARNING: runq lock held without IRQs disabled?\n", __func__); \
|
||||
}
|
||||
}
|
||||
#endif
|
||||
#endif
|
||||
|
||||
if (!success) {
|
||||
preempt_enable();
|
||||
}
|
||||
@ -182,6 +201,14 @@ static void __ihk_mc_spinlock_lock_noirq(ihk_spinlock_t *lock)
|
||||
: "=&r" (lockval), "=&r" (newval), "=&r" (tmp), "+Q" (*lock)
|
||||
: "Q" (lock->owner), "I" (1 << TICKET_SHIFT)
|
||||
: "memory");
|
||||
#ifdef ENABLE_FUGAKU_HACKS
|
||||
#if 0
|
||||
if (get_this_cpu_runq_lock() == lock &&
|
||||
!cpu_interrupt_disabled()) {
|
||||
kprintf("%s: WARNING: runq lock held without IRQs disabled?\n", __func__); \
|
||||
}
|
||||
#endif
|
||||
#endif
|
||||
}
|
||||
|
||||
#ifdef DEBUG_SPINLOCK
|
||||
|
||||
@ -94,7 +94,11 @@ extern char _end[];
|
||||
# define LD_TASK_UNMAPPED_BASE UL(0x0000080000000000)
|
||||
# define TASK_UNMAPPED_BASE UL(0x0000100000000000)
|
||||
# define USER_END UL(0x0000400000000000)
|
||||
#ifdef ENABLE_TOFU
|
||||
# define MAP_VMAP_START UL(0xffff7bdfffff0000)
|
||||
#else
|
||||
# define MAP_VMAP_START UL(0xffff780000000000)
|
||||
#endif
|
||||
# define MAP_VMAP_SIZE UL(0x0000000100000000)
|
||||
# define MAP_FIXED_START UL(0xffff7ffffbdd0000)
|
||||
# define MAP_ST_START UL(0xffff800000000000)
|
||||
@ -142,6 +146,7 @@ extern char _end[];
|
||||
# define __PTL1_SHIFT 16
|
||||
# define PTL4_INDEX_MASK 0
|
||||
# define PTL3_INDEX_MASK ((UL(1) << 6) - 1)
|
||||
# define PTL3_INDEX_MASK_LINUX ((UL(1) << 10) - 1)
|
||||
# define PTL2_INDEX_MASK ((UL(1) << 13) - 1)
|
||||
# define PTL1_INDEX_MASK PTL2_INDEX_MASK
|
||||
# define __PTL4_CONT_SHIFT (__PTL4_SHIFT + 0)
|
||||
@ -829,7 +834,13 @@ static inline int pte_is_head(pte_t *ptep, pte_t *old, size_t cont_size)
|
||||
return page_is_contiguous_head(ptep, cont_size);
|
||||
}
|
||||
|
||||
struct page_table;
|
||||
typedef pte_t translation_table_t;
|
||||
struct page_table {
|
||||
translation_table_t* tt;
|
||||
translation_table_t* tt_pa;
|
||||
int asid;
|
||||
};
|
||||
|
||||
void arch_adjust_allocate_page_size(struct page_table *pt,
|
||||
uintptr_t fault_addr,
|
||||
pte_t *ptep,
|
||||
@ -849,7 +860,6 @@ void *map_fixed_area(unsigned long phys, unsigned long size, int uncachable);
|
||||
void set_address_space_id(struct page_table *pt, int asid);
|
||||
int get_address_space_id(const struct page_table *pt);
|
||||
|
||||
typedef pte_t translation_table_t;
|
||||
void set_translation_table(struct page_table *pt, translation_table_t* tt);
|
||||
translation_table_t* get_translation_table(const struct page_table *pt);
|
||||
translation_table_t* get_translation_table_as_paddr(const struct page_table *pt);
|
||||
|
||||
@ -10,4 +10,13 @@ extern void *__inline_memcpy(void *to, const void *from, size_t t);
|
||||
|
||||
extern void *__inline_memset(void *s, unsigned long c, size_t count);
|
||||
|
||||
#define ARCH_MEMCLEAR
|
||||
|
||||
extern void __memclear(void *addr, unsigned long len, void *tmp);
|
||||
inline static void memclear(void *addr, unsigned long len)
|
||||
{
|
||||
uint64_t q0q1[4];
|
||||
__memclear(addr, len, (void *)&q0q1);
|
||||
}
|
||||
|
||||
#endif /* __HEADER_ARM64_COMMON_ARCH_TIMER_H */
|
||||
|
||||
@ -80,6 +80,10 @@ static inline uint64_t __raw_readq(const volatile void *addr)
|
||||
return val;
|
||||
}
|
||||
|
||||
/* IO barriers */
|
||||
#define __iormb() rmb()
|
||||
#define __iowmb() wmb()
|
||||
|
||||
/*
|
||||
* Relaxed I/O memory access primitives. These follow the Device memory
|
||||
* ordering rules but do not guarantee any ordering relative to Normal memory
|
||||
@ -95,5 +99,20 @@ static inline uint64_t __raw_readq(const volatile void *addr)
|
||||
#define writel_relaxed(v,c) ((void)__raw_writel((uint32_t)(v),(c)))
|
||||
#define writeq_relaxed(v,c) ((void)__raw_writeq((uint64_t)(v),(c)))
|
||||
|
||||
/*
|
||||
* I/O memory access primitives. Reads are ordered relative to any
|
||||
* following Normal memory access. Writes are ordered relative to any prior
|
||||
* Normal memory access.
|
||||
*/
|
||||
#define readb(c) ({ uint8_t __v = readb_relaxed(c); __iormb(); __v; })
|
||||
#define readw(c) ({ uint16_t __v = readw_relaxed(c); __iormb(); __v; })
|
||||
#define readl(c) ({ uint32_t __v = readl_relaxed(c); __iormb(); __v; })
|
||||
#define readq(c) ({ uint64_t __v = readq_relaxed(c); __iormb(); __v; })
|
||||
|
||||
#define writeb(v,c) ({ __iowmb(); writeb_relaxed((v),(c)); })
|
||||
#define writew(v,c) ({ __iowmb(); writew_relaxed((v),(c)); })
|
||||
#define writel(v,c) ({ __iowmb(); writel_relaxed((v),(c)); })
|
||||
#define writeq(v,c) ({ __iowmb(); writeq_relaxed((v),(c)); })
|
||||
|
||||
#endif /* __KERNEL__ */
|
||||
#endif /* __ASM_IO_H */
|
||||
|
||||
@ -85,7 +85,11 @@ enum __rlimit_resource
|
||||
__RLIMIT_RTPRIO = 14,
|
||||
#define RLIMIT_RTPRIO __RLIMIT_RTPRIO
|
||||
|
||||
__RLIMIT_NLIMITS = 15,
|
||||
/* timeout for RT tasks in us */
|
||||
__RLIMIT_RTTIME = 15,
|
||||
#define RLIMIT_RTTIME __RLIMIT_RTTIME
|
||||
|
||||
__RLIMIT_NLIMITS = 16,
|
||||
__RLIM_NLIMITS = __RLIMIT_NLIMITS
|
||||
#define RLIMIT_NLIMITS __RLIMIT_NLIMITS
|
||||
#define RLIM_NLIMITS __RLIM_NLIMITS
|
||||
|
||||
@ -118,12 +118,13 @@ SYSCALL_HANDLED(241, perf_event_open)
|
||||
SYSCALL_DELEGATED(241, perf_event_open)
|
||||
#endif // PERF_ENABLE
|
||||
SYSCALL_HANDLED(260, wait4)
|
||||
SYSCALL_HANDLED(261, prlimit64)
|
||||
SYSCALL_HANDLED(270, process_vm_readv)
|
||||
SYSCALL_HANDLED(271, process_vm_writev)
|
||||
SYSCALL_HANDLED(281, execveat)
|
||||
SYSCALL_HANDLED(700, get_cpu_id)
|
||||
#ifdef PROFILE_ENABLE
|
||||
SYSCALL_HANDLED(__NR_profile, profile)
|
||||
SYSCALL_HANDLED(PROFILE_EVENT_MAX, profile)
|
||||
#endif // PROFILE_ENABLE
|
||||
SYSCALL_HANDLED(730, util_migrate_inter_kernel)
|
||||
SYSCALL_HANDLED(731, util_indicate_clone)
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
#ifndef __HEADER_ARM64_COMMON_THREAD_INFO_H
|
||||
#define __HEADER_ARM64_COMMON_THREAD_INFO_H
|
||||
|
||||
#define MIN_KERNEL_STACK_SHIFT 15
|
||||
#define MIN_KERNEL_STACK_SHIFT 18
|
||||
|
||||
#include <arch-memory.h>
|
||||
|
||||
|
||||
@ -7,6 +7,9 @@
|
||||
#include <process.h>
|
||||
#include <syscall.h>
|
||||
#include <ihk/debug.h>
|
||||
#ifdef ENABLE_FUGAKU_HACKS
|
||||
#include <ihk/monitor.h>
|
||||
#endif
|
||||
#include <arch-timer.h>
|
||||
#include <cls.h>
|
||||
|
||||
@ -313,14 +316,27 @@ void handle_interrupt_gicv3(struct pt_regs *regs)
|
||||
struct cpu_local_var *v = get_this_cpu_local_var();
|
||||
//unsigned long irqflags;
|
||||
int do_check = 0;
|
||||
#ifdef ENABLE_FUGAKU_HACKS
|
||||
struct ihk_os_cpu_monitor *monitor = cpu_local_var(monitor);
|
||||
|
||||
++v->in_interrupt;
|
||||
#endif
|
||||
irqnr = gic_read_iar();
|
||||
cpu_enable_nmi();
|
||||
set_cputime(from_user ? CPUTIME_MODE_U2K : CPUTIME_MODE_K2K_IN);
|
||||
while (irqnr != ICC_IAR1_EL1_SPURIOUS) {
|
||||
if ((irqnr < 1020) || (irqnr >= 8192)) {
|
||||
gic_write_eoir(irqnr);
|
||||
#ifndef ENABLE_FUGAKU_HACKS
|
||||
handle_IPI(irqnr, regs);
|
||||
#else
|
||||
/* Once paniced, only allow CPU stop and NMI IRQs */
|
||||
if (monitor->status != IHK_OS_MONITOR_PANIC ||
|
||||
irqnr == INTRID_CPU_STOP ||
|
||||
irqnr == INTRID_MULTI_NMI) {
|
||||
handle_IPI(irqnr, regs);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
irqnr = gic_read_iar();
|
||||
}
|
||||
@ -335,7 +351,12 @@ void handle_interrupt_gicv3(struct pt_regs *regs)
|
||||
}
|
||||
//ihk_mc_spinlock_unlock(&v->runq_lock, irqflags);
|
||||
|
||||
#ifndef ENABLE_FUGAKU_HACKS
|
||||
if (do_check) {
|
||||
#else
|
||||
--v->in_interrupt;
|
||||
if (monitor->status != IHK_OS_MONITOR_PANIC && do_check) {
|
||||
#endif
|
||||
check_signal(0, regs, 0);
|
||||
schedule();
|
||||
}
|
||||
|
||||
@ -150,12 +150,6 @@ void flush_tlb_single(unsigned long addr)
|
||||
arch_flush_tlb_single(asid, addr);
|
||||
}
|
||||
|
||||
struct page_table {
|
||||
translation_table_t* tt;
|
||||
translation_table_t* tt_pa;
|
||||
int asid;
|
||||
};
|
||||
|
||||
extern struct page_table swapper_page_table;
|
||||
static struct page_table *init_pt = &swapper_page_table;
|
||||
static ihk_spinlock_t init_pt_lock;
|
||||
@ -223,6 +217,13 @@ static inline int ptl4_index(unsigned long addr)
|
||||
int idx = (addr >> PTL4_SHIFT) & PTL4_INDEX_MASK;
|
||||
return idx;
|
||||
}
|
||||
#ifdef ENABLE_TOFU
|
||||
static inline int ptl3_index_linux(unsigned long addr)
|
||||
{
|
||||
int idx = (addr >> PTL3_SHIFT) & PTL3_INDEX_MASK_LINUX;
|
||||
return idx;
|
||||
}
|
||||
#endif
|
||||
static inline int ptl3_index(unsigned long addr)
|
||||
{
|
||||
int idx = (addr >> PTL3_SHIFT) & PTL3_INDEX_MASK;
|
||||
@ -281,6 +282,40 @@ static inline pte_t* ptl4_offset(const translation_table_t* ptl4, unsigned long
|
||||
}
|
||||
return ptep;
|
||||
}
|
||||
|
||||
#ifdef ENABLE_TOFU
|
||||
static inline pte_t* ptl3_offset_linux(const pte_t* l4p, unsigned long addr)
|
||||
{
|
||||
pte_t* ptep = NULL;
|
||||
pte_t pte = 0;
|
||||
unsigned long phys = 0;
|
||||
translation_table_t* ptl3 = NULL;
|
||||
int idx = 0;
|
||||
|
||||
switch (CONFIG_ARM64_PGTABLE_LEVELS)
|
||||
{
|
||||
case 4:
|
||||
pte = ptl4_val(l4p);
|
||||
phys = pte & PT_PHYSMASK;
|
||||
ptl3 = phys_to_virt(phys);
|
||||
idx = ptl3_index_linux(addr);
|
||||
ptep = (pte_t*)ptl3 + idx;
|
||||
break;
|
||||
case 3:
|
||||
ptl3 = (translation_table_t*)l4p;
|
||||
idx = ptl3_index_linux(addr);
|
||||
ptep = (pte_t*)ptl3 + idx;
|
||||
break;
|
||||
case 2:
|
||||
case 1:
|
||||
/* PTL3が無いときにはエントリではなくページテーブルのアドレスを引渡していく。*/
|
||||
ptep = (pte_t*)l4p;
|
||||
break;
|
||||
}
|
||||
return ptep;
|
||||
}
|
||||
#endif
|
||||
|
||||
static inline pte_t* ptl3_offset(const pte_t* l4p, unsigned long addr)
|
||||
{
|
||||
pte_t* ptep = NULL;
|
||||
@ -959,7 +994,14 @@ static void init_normal_area(struct page_table *pt)
|
||||
int i;
|
||||
|
||||
tt = get_translation_table(pt);
|
||||
|
||||
|
||||
#ifdef ENABLE_TOFU
|
||||
setup(tt,
|
||||
arm64_st_phys_base,
|
||||
arm64_st_phys_base + (1UL << 40));
|
||||
return;
|
||||
#endif
|
||||
|
||||
for (i = 0; i < ihk_mc_get_nr_memory_chunks(); i++) {
|
||||
unsigned long map_start, map_end;
|
||||
int numa_id;
|
||||
@ -1287,6 +1329,58 @@ out:
|
||||
return ret;
|
||||
}
|
||||
|
||||
#ifdef ENABLE_TOFU
|
||||
int ihk_mc_linux_pt_virt_to_phys_size(struct page_table *pt,
|
||||
const void *virt,
|
||||
unsigned long *phys,
|
||||
unsigned long *size)
|
||||
{
|
||||
unsigned long v = (unsigned long)virt;
|
||||
pte_t* ptep;
|
||||
translation_table_t* tt;
|
||||
|
||||
unsigned long paddr;
|
||||
unsigned long lsize;
|
||||
|
||||
tt = get_translation_table(pt);
|
||||
|
||||
ptep = ptl4_offset(tt, v);
|
||||
if (!ptl4_present(ptep)) {
|
||||
return -EFAULT;
|
||||
}
|
||||
|
||||
ptep = ptl3_offset_linux(ptep, v);
|
||||
if (!ptl3_present(ptep)) {
|
||||
return -EFAULT;
|
||||
}
|
||||
if (ptl3_type_block(ptep)) {
|
||||
paddr = ptl3_phys(ptep);
|
||||
lsize = PTL3_SIZE;
|
||||
goto out;
|
||||
}
|
||||
|
||||
ptep = ptl2_offset(ptep, v);
|
||||
if (!ptl2_present(ptep)) {
|
||||
return -EFAULT;
|
||||
}
|
||||
if (ptl2_type_block(ptep)) {
|
||||
paddr = ptl2_phys(ptep);
|
||||
lsize = PTL2_SIZE;
|
||||
goto out;
|
||||
}
|
||||
|
||||
ptep = ptl1_offset(ptep, v);
|
||||
if (!ptl1_present(ptep)) {
|
||||
return -EFAULT;
|
||||
}
|
||||
paddr = ptl1_phys(ptep);
|
||||
lsize = PTL1_SIZE;
|
||||
out:
|
||||
*phys = paddr | (v & (lsize - 1));
|
||||
if(size) *size = lsize;
|
||||
return 0;
|
||||
}
|
||||
#endif
|
||||
|
||||
int ihk_mc_pt_virt_to_phys_size(struct page_table *pt,
|
||||
const void *virt,
|
||||
@ -1348,7 +1442,6 @@ int ihk_mc_pt_virt_to_phys(struct page_table *pt,
|
||||
return ihk_mc_pt_virt_to_phys_size(pt, virt, phys, NULL);
|
||||
}
|
||||
|
||||
|
||||
int ihk_mc_pt_print_pte(struct page_table *pt, void *virt)
|
||||
{
|
||||
const unsigned long v = (unsigned long)virt;
|
||||
@ -1360,6 +1453,15 @@ int ihk_mc_pt_print_pte(struct page_table *pt, void *virt)
|
||||
}
|
||||
tt = get_translation_table(pt);
|
||||
|
||||
__kprintf("%s: 0x%lx, CONFIG_ARM64_PGTABLE_LEVELS: %d, ptl4_index: %ld, ptl3_index: %ld, ptl2_index: %ld, ptl1_index: %ld\n",
|
||||
__func__,
|
||||
v,
|
||||
CONFIG_ARM64_PGTABLE_LEVELS,
|
||||
ptl4_index(v),
|
||||
ptl3_index(v),
|
||||
ptl2_index(v),
|
||||
ptl1_index(v));
|
||||
|
||||
ptep = ptl4_offset(tt, v);
|
||||
__kprintf("l4 table: 0x%lX l4idx: %d\n", virt_to_phys(tt), ptl4_index(v));
|
||||
if (!(ptl4_present(ptep))) {
|
||||
@ -2147,6 +2249,198 @@ static void unmap_free_stat(struct page *page, unsigned long phys,
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* Kernel space page table clearing functions.
|
||||
*/
|
||||
struct clear_kernel_range_args {
|
||||
int free_physical;
|
||||
};
|
||||
|
||||
static int clear_kernel_range_middle(void *args0, pte_t *ptep, uint64_t base,
|
||||
uint64_t start, uint64_t end, int level);
|
||||
|
||||
static int clear_kernel_range_l1(void *args0, pte_t *ptep, uint64_t base,
|
||||
uint64_t start, uint64_t end)
|
||||
{
|
||||
const struct table {
|
||||
unsigned long pgsize;
|
||||
unsigned long cont_pgsize;
|
||||
} tbl = {
|
||||
.pgsize = PTL1_SIZE,
|
||||
.cont_pgsize = PTL1_CONT_SIZE
|
||||
};
|
||||
|
||||
struct clear_kernel_range_args *args = args0;
|
||||
uint64_t phys = 0;
|
||||
pte_t old;
|
||||
size_t clear_size;
|
||||
|
||||
if (ptl1_null(ptep)) {
|
||||
return -ENOENT;
|
||||
}
|
||||
|
||||
old = xchg(ptep, PTE_NULL);
|
||||
if (!pte_is_present(&old))
|
||||
return 0;
|
||||
|
||||
arch_flush_tlb_single(0, base);
|
||||
clear_size = pte_is_contiguous(&old) ?
|
||||
tbl.cont_pgsize : tbl.pgsize;
|
||||
|
||||
dkprintf("%s: 0x%lx:%lu unmapped\n",
|
||||
__func__, base, clear_size);
|
||||
|
||||
if (args->free_physical) {
|
||||
phys = ptl1_phys(&old);
|
||||
ihk_mc_free_pages(phys_to_virt(phys), clear_size >> PAGE_SHIFT);
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int clear_kernel_range_l2(void *args0, pte_t *ptep, uint64_t base,
|
||||
uint64_t start, uint64_t end)
|
||||
{
|
||||
return clear_kernel_range_middle(args0, ptep, base, start, end, 2);
|
||||
}
|
||||
|
||||
static int clear_kernel_range_l3(void *args0, pte_t *ptep, uint64_t base,
|
||||
uint64_t start, uint64_t end)
|
||||
{
|
||||
return clear_kernel_range_middle(args0, ptep, base, start, end, 3);
|
||||
}
|
||||
|
||||
static int clear_kernel_range_l4(void *args0, pte_t *ptep, uint64_t base,
|
||||
uint64_t start, uint64_t end)
|
||||
{
|
||||
return clear_kernel_range_middle(args0, ptep, base, start, end, 4);
|
||||
}
|
||||
|
||||
static int clear_kernel_range_middle(void *args0, pte_t *ptep, uint64_t base,
|
||||
uint64_t start, uint64_t end, int level)
|
||||
{
|
||||
const struct table {
|
||||
walk_pte_t* walk;
|
||||
walk_pte_fn_t* callback;
|
||||
unsigned long pgsize;
|
||||
unsigned long cont_pgsize;
|
||||
} table[] = {
|
||||
{walk_pte_l1, clear_kernel_range_l1, PTL2_SIZE, PTL2_CONT_SIZE}, /*PTL2*/
|
||||
{walk_pte_l2, clear_kernel_range_l2, PTL3_SIZE, PTL3_CONT_SIZE}, /*PTL3*/
|
||||
{walk_pte_l3, clear_kernel_range_l3, PTL4_SIZE, PTL4_CONT_SIZE}, /*PTL4*/
|
||||
};
|
||||
const struct table tbl = table[level-2];
|
||||
|
||||
struct clear_kernel_range_args *args = args0;
|
||||
uint64_t phys = 0;
|
||||
translation_table_t *tt;
|
||||
int error;
|
||||
pte_t old;
|
||||
size_t clear_size;
|
||||
|
||||
if (ptl_null(ptep, level)) {
|
||||
return -ENOENT;
|
||||
}
|
||||
|
||||
dkprintf("%s(level: %d): 0x%lx in 0x%lx-0x%lx\n",
|
||||
__func__, level, base, start, end);
|
||||
|
||||
if (ptl_type_page(ptep, level)
|
||||
&& ((base < start) || (end < (base + tbl.pgsize)))) {
|
||||
error = -EINVAL;
|
||||
ekprintf("clear_range_middle(%p,%p,%lx,%lx,%lx,%d):"
|
||||
"split page. %d\n",
|
||||
args0, ptep, base, start, end, level, error);
|
||||
return error;
|
||||
}
|
||||
|
||||
if (ptl_type_page(ptep, level)) {
|
||||
old = xchg(ptep, PTE_NULL);
|
||||
|
||||
if (!ptl_present(&old, level)) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
arch_flush_tlb_single(0, base);
|
||||
|
||||
clear_size = pte_is_contiguous(&old) ?
|
||||
tbl.cont_pgsize : tbl.pgsize;
|
||||
|
||||
dkprintf("%s(level: %d): 0x%lx:%lu unmapped\n",
|
||||
__func__, level, base, clear_size);
|
||||
|
||||
if (args->free_physical) {
|
||||
phys = ptl_phys(&old, level);
|
||||
ihk_mc_free_pages(phys_to_virt(phys), clear_size >> PAGE_SHIFT);
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
tt = (translation_table_t*)phys_to_virt(ptl_phys(ptep, level));
|
||||
error = tbl.walk(tt, base, start, end, tbl.callback, args0);
|
||||
if (error && (error != -ENOENT)) {
|
||||
return error;
|
||||
}
|
||||
|
||||
if (args->free_physical) {
|
||||
if ((start <= base) && ((base + tbl.pgsize) <= end)) {
|
||||
ptl_clear(ptep, level);
|
||||
arch_flush_tlb_single(0, base);
|
||||
ihk_mc_free_pages(tt, 1);
|
||||
}
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int clear_kernel_range(uintptr_t start, uintptr_t end, int free_physical)
|
||||
{
|
||||
const struct table {
|
||||
walk_pte_t* walk;
|
||||
walk_pte_fn_t* callback;
|
||||
} tables[] = {
|
||||
{walk_pte_l2, clear_kernel_range_l2}, /*second*/
|
||||
{walk_pte_l3, clear_kernel_range_l3}, /*first*/
|
||||
{walk_pte_l4, clear_kernel_range_l4}, /*zero*/
|
||||
};
|
||||
const struct table initial_lookup = tables[CONFIG_ARM64_PGTABLE_LEVELS - 2];
|
||||
|
||||
int error;
|
||||
struct clear_kernel_range_args args;
|
||||
translation_table_t* tt;
|
||||
unsigned long irqflags;
|
||||
|
||||
dkprintf("%s: start: 0x%lx, end: 0x%lx, free phys: %d\n",
|
||||
__func__, start, end, free_physical);
|
||||
|
||||
if (start <= USER_END)
|
||||
return -EINVAL;
|
||||
|
||||
args.free_physical = free_physical;
|
||||
|
||||
irqflags = ihk_mc_spinlock_lock(&init_pt_lock);
|
||||
tt = get_translation_table(get_init_page_table());
|
||||
error = initial_lookup.walk(tt, 0,
|
||||
(start & ~(0xffff000000000000)),
|
||||
(end & ~(0xffff000000000000)),
|
||||
initial_lookup.callback, &args);
|
||||
dkprintf("%s: start: 0x%lx, end: 0x%lx, free phys: %d, ret: %d\n",
|
||||
__func__, start, end, free_physical, error);
|
||||
|
||||
ihk_mc_spinlock_unlock(&init_pt_lock, irqflags);
|
||||
return error;
|
||||
}
|
||||
|
||||
int ihk_mc_clear_kernel_range(void *start, void *end)
|
||||
{
|
||||
#define KEEP_PHYSICAL 0
|
||||
return clear_kernel_range((uintptr_t)start, (uintptr_t)end, KEEP_PHYSICAL);
|
||||
}
|
||||
|
||||
/*
|
||||
* User space page table clearing functions.
|
||||
*/
|
||||
struct clear_range_args {
|
||||
int free_physical;
|
||||
struct memobj *memobj;
|
||||
@ -2344,6 +2638,14 @@ static int clear_range(struct page_table *pt, struct process_vm *vm,
|
||||
if (memobj && ((memobj->flags & MF_PREMAP))) {
|
||||
args.free_physical = 0;
|
||||
}
|
||||
|
||||
if (vm->proc->straight_va &&
|
||||
(void *)start == vm->proc->straight_va &&
|
||||
(void *)end == (vm->proc->straight_va +
|
||||
vm->proc->straight_len)) {
|
||||
args.free_physical = 0;
|
||||
}
|
||||
|
||||
args.memobj = memobj;
|
||||
args.vm = vm;
|
||||
|
||||
|
||||
@ -218,3 +218,41 @@ ENTRY(__inline_memset)
|
||||
ret
|
||||
ENDPIPROC(__inline_memset)
|
||||
ENDPROC(____inline_memset)
|
||||
|
||||
|
||||
/*
|
||||
* Non-temporal vector memory clear
|
||||
*
|
||||
* Parameters:
|
||||
* x0 - buf (assumed to be aligned to page size)
|
||||
* x1 - n (assumed to be at least page size)
|
||||
*/
|
||||
ENTRY(__memclear)
|
||||
stp q0, q1, [x2] /* Preserve two 128 bit vector regs */
|
||||
eor v0.16B, v0.16B, v0.16B
|
||||
eor v1.16B, v1.16B, v1.16B
|
||||
1:
|
||||
stnp q0, q1, [x0, #32 * 0]
|
||||
stnp q0, q1, [x0, #32 * 1]
|
||||
stnp q0, q1, [x0, #32 * 2]
|
||||
stnp q0, q1, [x0, #32 * 3]
|
||||
stnp q0, q1, [x0, #32 * 4]
|
||||
stnp q0, q1, [x0, #32 * 5]
|
||||
stnp q0, q1, [x0, #32 * 6]
|
||||
stnp q0, q1, [x0, #32 * 7]
|
||||
stnp q0, q1, [x0, #32 * 8]
|
||||
stnp q0, q1, [x0, #32 * 9]
|
||||
stnp q0, q1, [x0, #32 * 10]
|
||||
stnp q0, q1, [x0, #32 * 11]
|
||||
stnp q0, q1, [x0, #32 * 12]
|
||||
stnp q0, q1, [x0, #32 * 13]
|
||||
stnp q0, q1, [x0, #32 * 14]
|
||||
stnp q0, q1, [x0, #32 * 15]
|
||||
add x0, x0, #512
|
||||
subs x1, x1, #512
|
||||
cmp x1, #0
|
||||
b.ne 1b
|
||||
|
||||
ldp q0, q1, [x2] /* Restore vector regs */
|
||||
ret
|
||||
ENDPROC(__memclear)
|
||||
|
||||
@ -1071,6 +1071,9 @@ static int setup_rt_frame(int usig, unsigned long rc, int to_restart,
|
||||
|
||||
if (k->sa.sa_flags & SA_RESTORER){
|
||||
regs->regs[30] = (unsigned long)k->sa.sa_restorer;
|
||||
#ifdef ENABLE_FUGAKU_HACKS
|
||||
kprintf("%s: SA_RESTORER: 0x%lx\n", __func__, regs->regs[30]);
|
||||
#endif
|
||||
} else {
|
||||
regs->regs[30] = (unsigned long)VDSO_SYMBOL(thread->vm->vdso_addr, sigtramp);
|
||||
}
|
||||
@ -1723,9 +1726,18 @@ SYSCALL_DECLARE(mmap)
|
||||
|
||||
/* check arguments */
|
||||
pgsize = PAGE_SIZE;
|
||||
#ifndef ENABLE_FUGAKU_HACKS
|
||||
if (flags & MAP_HUGETLB) {
|
||||
int hugeshift = flags & (0x3F << MAP_HUGE_SHIFT);
|
||||
|
||||
/* OpenMPI expects -EINVAL when trying to map
|
||||
* /dev/shm/ file with MAP_SHARED | MAP_HUGETLB
|
||||
*/
|
||||
if (!(flags & MAP_ANONYMOUS)) {
|
||||
error = -EINVAL;
|
||||
goto out;
|
||||
}
|
||||
|
||||
if (hugeshift == 0) {
|
||||
/* default hugepage size */
|
||||
flags |= ihk_mc_get_linux_default_huge_page_shift() <<
|
||||
@ -1755,6 +1767,11 @@ SYSCALL_DECLARE(mmap)
|
||||
goto out;
|
||||
}
|
||||
}
|
||||
#else
|
||||
if (flags & MAP_HUGETLB) {
|
||||
flags &= ~(MAP_HUGETLB);
|
||||
}
|
||||
#endif
|
||||
|
||||
#define VALID_DUMMY_ADDR ((region->user_start + PTL3_SIZE - 1) & ~(PTL3_SIZE - 1))
|
||||
addr = (flags & MAP_FIXED)? addr0: VALID_DUMMY_ADDR;
|
||||
|
||||
@ -174,9 +174,14 @@ void bad_mode(struct pt_regs *regs, int reason, unsigned int esr)
|
||||
|
||||
arch_show_interrupt_context(regs);
|
||||
|
||||
#ifdef ENABLE_TOFU
|
||||
info.si_signo = SIGSTOP;
|
||||
info.si_errno = 0;
|
||||
#else
|
||||
info.si_signo = SIGILL;
|
||||
info.si_errno = 0;
|
||||
info.si_code = ILL_ILLOPC;
|
||||
#endif
|
||||
info._sifields._sigfault.si_addr = (void*)regs->pc;
|
||||
|
||||
arm64_notify_die("Oops - bad mode", regs, &info, 0);
|
||||
|
||||
@ -868,6 +868,49 @@ void show_context_stack(uintptr_t *rbp) {
|
||||
return;
|
||||
}
|
||||
|
||||
#ifdef ENABLE_FUGAKU_HACKS
|
||||
void __show_context_stack(struct thread *thread,
|
||||
unsigned long pc, uintptr_t sp, int kprintf_locked)
|
||||
{
|
||||
uintptr_t stack_top;
|
||||
unsigned long irqflags = 0;
|
||||
|
||||
stack_top = ALIGN_UP(sp, (uintptr_t)KERNEL_STACK_SIZE);
|
||||
|
||||
if (!kprintf_locked)
|
||||
irqflags = kprintf_lock();
|
||||
|
||||
__kprintf("TID: %d, call stack (most recent first):\n",
|
||||
thread->tid);
|
||||
__kprintf("PC: %016lx, SP: %016lx\n", pc, sp);
|
||||
for (;;) {
|
||||
extern char _head[], _end[];
|
||||
uintptr_t *fp, *lr;
|
||||
fp = (uintptr_t *)sp;
|
||||
lr = (uintptr_t *)(sp + 8);
|
||||
|
||||
if ((*fp <= sp)) {
|
||||
break;
|
||||
}
|
||||
|
||||
if ((*fp > stack_top)) {
|
||||
break;
|
||||
}
|
||||
|
||||
if ((*lr < (unsigned long)_head) ||
|
||||
(*lr > (unsigned long)_end)) {
|
||||
break;
|
||||
}
|
||||
|
||||
__kprintf("PC: %016lx, SP: %016lx, FP: %016lx\n", *lr - 4, sp, *fp);
|
||||
sp = *fp;
|
||||
}
|
||||
|
||||
if (!kprintf_locked)
|
||||
kprintf_unlock(irqflags);
|
||||
}
|
||||
#endif
|
||||
|
||||
void interrupt_exit(struct x86_user_context *regs)
|
||||
{
|
||||
if (interrupt_from_user(regs)) {
|
||||
@ -1137,6 +1180,17 @@ void cpu_halt(void)
|
||||
asm volatile("hlt");
|
||||
}
|
||||
|
||||
#ifdef ENABLE_FUGAKU_HACKS
|
||||
/*@
|
||||
@ assigns \nothing;
|
||||
@ ensures \interrupt_disabled == 0;
|
||||
@*/
|
||||
void cpu_halt_panic(void)
|
||||
{
|
||||
cpu_halt();
|
||||
}
|
||||
#endif
|
||||
|
||||
/*@
|
||||
@ assigns \nothing;
|
||||
@ ensures \interrupt_disabled == 0;
|
||||
@ -1521,6 +1575,16 @@ void arch_print_stack(void)
|
||||
__print_stack(rbp, 0);
|
||||
}
|
||||
|
||||
#ifdef ENABLE_FUGAKU_HACKS
|
||||
unsigned long arch_get_instruction_address(const void *reg)
|
||||
{
|
||||
const struct x86_user_context *uctx = reg;
|
||||
const struct x86_basic_regs *regs = &uctx->gpr;
|
||||
|
||||
return regs->rip;
|
||||
}
|
||||
#endif
|
||||
|
||||
/*@
|
||||
@ requires \valid(reg);
|
||||
@ assigns \nothing;
|
||||
|
||||
@ -451,4 +451,12 @@ extern unsigned long ap_trampoline;
|
||||
|
||||
/* Local is cachable */
|
||||
#define IHK_IKC_QUEUE_PT_ATTR (PTATTR_NO_EXECUTE | PTATTR_WRITABLE)
|
||||
|
||||
#ifdef ENABLE_FUGAKU_HACKS
|
||||
#ifndef __ASSEMBLY__
|
||||
# define ALIGN_UP(x, align) ALIGN_DOWN((x) + (align) - 1, align)
|
||||
# define ALIGN_DOWN(x, align) ((x) & ~((align) - 1))
|
||||
#endif /* !__ASSEMBLY__ */
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
@ -53,5 +53,9 @@ struct x86_cpu_local_variables *get_x86_this_cpu_local(void);
|
||||
void *get_x86_cpu_local_kstack(int id);
|
||||
void *get_x86_this_cpu_kstack(void);
|
||||
|
||||
#ifdef ENABLE_FUGAKU_HACKS
|
||||
#define LOCALS_SPAN (4 * PAGE_SIZE)
|
||||
#define KERNEL_STACK_SIZE LOCALS_SPAN
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
@ -84,7 +84,11 @@ enum __rlimit_resource
|
||||
__RLIMIT_RTPRIO = 14,
|
||||
#define RLIMIT_RTPRIO __RLIMIT_RTPRIO
|
||||
|
||||
__RLIMIT_NLIMITS = 15,
|
||||
/* timeout for RT tasks in us */
|
||||
__RLIMIT_RTTIME = 15,
|
||||
#define RLIMIT_RTTIME __RLIMIT_RTTIME
|
||||
|
||||
__RLIMIT_NLIMITS = 16,
|
||||
__RLIM_NLIMITS = __RLIMIT_NLIMITS
|
||||
#define RLIMIT_NLIMITS __RLIMIT_NLIMITS
|
||||
#define RLIM_NLIMITS __RLIM_NLIMITS
|
||||
|
||||
@ -158,6 +158,7 @@ SYSCALL_HANDLED(289, signalfd4)
|
||||
#ifdef ENABLE_PERF
|
||||
SYSCALL_HANDLED(298, perf_event_open)
|
||||
#endif
|
||||
SYSCALL_HANDLED(302, prlimit64)
|
||||
#ifdef DCFA_KMOD
|
||||
SYSCALL_HANDLED(303, mod_call)
|
||||
#endif
|
||||
@ -167,7 +168,7 @@ SYSCALL_HANDLED(311, process_vm_writev)
|
||||
SYSCALL_HANDLED(322, execveat)
|
||||
SYSCALL_HANDLED(700, get_cpu_id)
|
||||
#ifdef PROFILE_ENABLE
|
||||
SYSCALL_HANDLED(__NR_profile, profile)
|
||||
SYSCALL_HANDLED(PROFILE_EVENT_MAX, profile)
|
||||
#endif // PROFILE_ENABLE
|
||||
SYSCALL_HANDLED(730, util_migrate_inter_kernel)
|
||||
SYSCALL_HANDLED(731, util_indicate_clone)
|
||||
|
||||
@ -21,7 +21,9 @@
|
||||
#include <registers.h>
|
||||
#include <string.h>
|
||||
|
||||
#ifndef ENABLE_FUGAKU_HACKS
|
||||
#define LOCALS_SPAN (4 * PAGE_SIZE)
|
||||
#endif
|
||||
|
||||
struct x86_cpu_local_variables *locals;
|
||||
size_t x86_cpu_local_variables_span = LOCALS_SPAN; /* for debugger */
|
||||
|
||||
@ -1651,6 +1651,14 @@ static int clear_range(struct page_table *pt, struct process_vm *vm,
|
||||
if (memobj && ((memobj->flags & MF_PREMAP))) {
|
||||
args.free_physical = 0;
|
||||
}
|
||||
|
||||
if (vm->proc->straight_va &&
|
||||
(void *)start == vm->proc->straight_va &&
|
||||
(void *)end == (vm->proc->straight_va +
|
||||
vm->proc->straight_len)) {
|
||||
args.free_physical = 0;
|
||||
}
|
||||
|
||||
args.memobj = memobj;
|
||||
args.vm = vm;
|
||||
|
||||
|
||||
@ -1430,6 +1430,14 @@ SYSCALL_DECLARE(mmap)
|
||||
/* check arguments */
|
||||
pgsize = PAGE_SIZE;
|
||||
if (flags & MAP_HUGETLB) {
|
||||
/* OpenMPI expects -EINVAL when trying to map
|
||||
* /dev/shm/ file with MAP_SHARED | MAP_HUGETLB
|
||||
*/
|
||||
if (!(flags & MAP_ANONYMOUS)) {
|
||||
error = -EINVAL;
|
||||
goto out;
|
||||
}
|
||||
|
||||
switch (flags & (0x3F << MAP_HUGE_SHIFT)) {
|
||||
case 0:
|
||||
/* default hugepage size */
|
||||
|
||||
@ -30,6 +30,9 @@ endif ()
|
||||
|
||||
if (NOT "${LINUX_ARCH}" STREQUAL "${CMAKE_HOST_SYSTEM_PROCESSOR}")
|
||||
string(REGEX REPLACE "ld$" "" CROSS_COMPILE "${CMAKE_LINKER}")
|
||||
if (CMAKE_CROSSCOMPILING)
|
||||
list(APPEND KBUILD_MAKE_FLAGS "QEMU_LD_PREFIX=${CMAKE_FIND_ROOT_PATH}")
|
||||
endif()
|
||||
list(APPEND KBUILD_MAKE_FLAGS "ARCH=${ARCH}")
|
||||
list(APPEND KBUILD_MAKE_FLAGS "CROSS_COMPILE=${CROSS_COMPILE}")
|
||||
endif()
|
||||
|
||||
29
docs/Makefile
Normal file
29
docs/Makefile
Normal file
@ -0,0 +1,29 @@
|
||||
# Minimal makefile for Sphinx documentation
|
||||
#
|
||||
|
||||
# You can set these variables from the command line.
|
||||
SPHINXOPTS =
|
||||
SPHINXBUILD = sphinx-build
|
||||
SOURCEDIR = .
|
||||
BUILDDIR = _build
|
||||
|
||||
# Put it first so that "make" without argument is like "make help".
|
||||
help:
|
||||
@$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
|
||||
|
||||
.PHONY: help Makefile
|
||||
|
||||
po:
|
||||
sphinx-build -b gettext . _build/gettext
|
||||
/opt/local/Library/Frameworks/Python.framework/Versions/3.8/bin/sphinx-intl update -p _build/gettext -l ja
|
||||
|
||||
ja:
|
||||
sphinx-build -b html -D language=ja . _build/html/ja
|
||||
|
||||
# Catch-all target: route all unknown targets to Sphinx using the new
|
||||
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
|
||||
%: Makefile
|
||||
echo ".. figure:: docs/mckernel-logo.png" > ../README.rst; echo >> ../README.rst
|
||||
cat summary.rst >> ../README.rst; echo >> ../README.rst
|
||||
cat doc.rst >> ../README.rst
|
||||
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
|
||||
446
docs/NEWS.rst
Normal file
446
docs/NEWS.rst
Normal file
@ -0,0 +1,446 @@
|
||||
=============================================
|
||||
Version 1.7.0 (Nov 25, 2020)
|
||||
=============================================
|
||||
|
||||
----------------------
|
||||
IHK major updates
|
||||
----------------------
|
||||
#. ihklib: add ihk_create_os_str
|
||||
#. ihklib: ihk_reserve_mem: add capped best effort to balanced
|
||||
|
||||
------------------------
|
||||
IHK major bug fixes
|
||||
------------------------
|
||||
#. make /dev/mcdN sharable
|
||||
#. acpi: compat: RHEL-8.2
|
||||
#. gic_chip_data: compat: RHEL-8.3
|
||||
|
||||
----------------------
|
||||
McKernel major updates
|
||||
----------------------
|
||||
#. arm64: Contiguous PTE support
|
||||
#. arm64: Scalable Vector Extension (SVE) support
|
||||
#. arm64: PMU overflow interrupt support
|
||||
#. arm64 port: Direct access to Mckernel memory from Linux
|
||||
#. arm64 port: utility thread offloading, which spawns thread onto Linux CPU
|
||||
#. eclair: support for live debug
|
||||
#. Crash utility extension
|
||||
#. Replace mcoverlayfs with a soft userspace overlay
|
||||
#. Build system is switched to cmake
|
||||
#. Core dump includes thread information
|
||||
#. mcinspect and mcps: DWARF based LWK inspection
|
||||
|
||||
------------------------
|
||||
McKernel major bug fixes
|
||||
------------------------
|
||||
#. shmobj: Fix rusage counting for large page
|
||||
#. mcctrl control: task start_time changed to u64 nsec
|
||||
#. mcctrl: add handling for one more level of page tables
|
||||
#. Add kernel argument to turn on/off time sharing
|
||||
#. flatten_string / process env: realign env and clear trailing bits
|
||||
#. madvise: Add MADV_HUGEPAGE support
|
||||
#. mcctrl: remove in-kernel calls to syscalls
|
||||
#. arch_cpu_read_write_register: error return fix.
|
||||
#. set_cputime(): interrupt enable/disable fix.
|
||||
#. set_mempolicy(): Add mode check.
|
||||
#. mbind(): Fix memory_range_lock deadlock.
|
||||
#. ihk_ikc_recv: Record channel to packet for release
|
||||
#. Add set_cputime() kernel to kernel case and mode enum.
|
||||
#. execve: Call preempt_enable() before error-exit
|
||||
#. memory/x86_64: fix linux safe_kernel_map
|
||||
#. do_kill(): fix pids table when nr of threads is larger than num_processors
|
||||
#. shmget: Use transparent huge pages when page size isn't specified
|
||||
#. prctl: Add support for PR_SET_THP_DISABLE and PR_GET_THP_DISABLE
|
||||
#. monitor_init: fix undetected hang on highest numbered core
|
||||
#. init_process_stack: change premapped stack size based on arch
|
||||
#. x86 syscalls: add a bunch of XXat() delegated syscalls
|
||||
#. do_pageout: fix direct kernel-user access
|
||||
#. stack: add hwcap auxval
|
||||
#. perf counters: add arch-specific perf counters
|
||||
#. Added check of nohost to terminate_host().
|
||||
#. kmalloc: Fix address order in free list
|
||||
#. sysfs: use nr_cpu_ids for cpumasks (fixes libnuma parsing error on ARM)
|
||||
#. monitor_init: Use ihk_mc_cpu_info()
|
||||
#. Fix ThunderX2 write-combined PTE flag insanity
|
||||
#. ARM: eliminate zero page mapping (i.e, init_low_area())
|
||||
#. eliminate futex_cmpxchg_enabled check (not used and dereffed a NULL pointer)
|
||||
#. page_table: Fix return value of lookup_pte when ptl4 is blank
|
||||
#. sysfs: add missing symlinks for cpu/node
|
||||
#. Make Linux handler run when mmap to procfs.
|
||||
#. Separate mmap area from program loading (relocation) area
|
||||
#. move rusage into kernel ELF image (avoid dynamic alloc before NUMA init)
|
||||
#. arm: turn off cpu on panic
|
||||
#. page fault handler: protect thread accesses
|
||||
#. Register PPD and release_handler at the same time.
|
||||
#. fix to missing exclusive processing between terminate() and finalize_process().
|
||||
#. perfctr_stop: add flags to no 'disable_intens'
|
||||
#. fileobj, shmobj: free pages in object destructor (as opposed to page_unmap())
|
||||
#. clear_range_l1, clear_range_middle: Fix handling contiguous PTE
|
||||
#. do_mmap: don't pre-populate the whole file when asked for smaller segment
|
||||
#. invalidate_one_page: Support shmobj and contiguous PTE
|
||||
#. ubsan: fix undefined shifts
|
||||
#. x86: disable zero mapping and add a boot pt for ap trampoline
|
||||
#. rusage: Don't count PF_PATCH change
|
||||
#. Fixed time processing.
|
||||
#. copy_user_pte: vmap area not owned by McKernel
|
||||
#. gencore: Zero-clear ELF header and memory range table
|
||||
#. rpm: ignore CMakeCache.txt in dist and relax BuildRequires on cross build
|
||||
#. gencore: Allocate ELF header to heap instead of stack
|
||||
#. nanosleep: add cpu_pause() in spinwait loop
|
||||
#. init_process: add missing initializations to proc struct
|
||||
#. rus_vm_fault: always use a packet on the stack
|
||||
#. process stack: use PAGE_SIZE in aux vector
|
||||
#. copy_user_pte: base memobj copy on range & VR_PRIVATE
|
||||
#. arm64: ptrace: Fix overwriting 1st argument with return value
|
||||
#. page fault: use cow for private device mappings
|
||||
#. reproductible builds: remove most install paths in c code
|
||||
#. page fault: clear writable bit for non-dirtying access to shared ranges
|
||||
#. mcreboot/mcstop+release: support for regular user execution
|
||||
#. irqbalance_mck: replace extra service with service drop-in
|
||||
#. do_mmap: give addr argument a chance even if not MAP_FIXED
|
||||
#. x86: fix xchg() and cmpxchg() macros
|
||||
#. IHK: support for using Linux work IRQ as IKC interrupt (optional)
|
||||
#. MCS: fix ARM64 issue by using smp_XXX() functions (i.e., barrier()s)
|
||||
#. procfs: add number of threads to stat and status
|
||||
#. memory_range_lock: Fix deadlock in procfs/sysfs handler
|
||||
#. flush instruction cache at context switch time if necessary
|
||||
#. arm64: Fix PMU related functions
|
||||
#. page_fault_process_memory_range: Disable COW for VM region with zeroobj
|
||||
#. extend_process_region: Fall back to demand paging when not contiguous
|
||||
#. munmap: fix deadlock with remote pagefault on vm range lock
|
||||
#. procfs: if memory_range_lock fails, process later
|
||||
#. migrate-cpu: Prevent migration target from calling schedule() twice
|
||||
#. sched_request_migrate(): fix race condition between migration req and IRQs
|
||||
#. get_one_cpu_topology: Renumber core_id (physical core id)
|
||||
#. bb7e140 procfs cpuinfo: use sequence number as processor
|
||||
#. set_host_vma(): do NOT read protect Linux VMA
|
||||
#. hugefileobj: rewrite page allocation/handling
|
||||
#. VM: use RW spinlock for vm_range_lock
|
||||
#. /dev/shm: use Linux PFNs and populate mappings
|
||||
#. Make struct ihk_os_rusage compatible with mckernel_rusage (workaround for Fugaku)
|
||||
#. Record pthread routine address in clone(), keep helper threads on caller CPU core (workaround for Fugaku)
|
||||
#. struct process: fix type of group_exit_status
|
||||
#. tgkill: Fix argument validatation
|
||||
#. set_robust_list: Add error check
|
||||
#. mcexec: Don't forward SIGTSTP SIGTTIN SIGTTOUT to mckernel
|
||||
#. syscall: add prlimit64
|
||||
#. stack: grow on page fault
|
||||
#. mcexec: use FLIB_NUM_PROCESS_ON_NODE when -n not specified (Fugaku specific)
|
||||
|
||||
===========================================
|
||||
Version 1.6.0 (Nov 11, 2018)
|
||||
===========================================
|
||||
|
||||
-----------------------------------------------
|
||||
McKernel major updates
|
||||
-----------------------------------------------
|
||||
#. McKernel and Linux share one unified kernel virtual address space.
|
||||
That is, McKernel sections resides in Linux sections spared for
|
||||
modules. In this way, Linux can access the McKernel kernel memory area.
|
||||
#. hugetlbfs support
|
||||
#. IHK is now included as a git submodule
|
||||
#. Debug messages are turned on/off in per souce file basis at run-time.
|
||||
#. It's prohibited for McKernel to access physical memory ranges which Linux didn't give to McKernel.
|
||||
#. UTI (capability to spawn a thread on Linux CPU) improvement:
|
||||
|
||||
* System calls issued from the thread are hooked by modifying binary in memory.
|
||||
|
||||
---------------------------
|
||||
McKernel major bug fixes
|
||||
---------------------------
|
||||
#<digits> below denotes the redmine issue number (https://postpeta.pccluster.org/redmine/).
|
||||
|
||||
1. #926: shmget: Hide object with IPC_RMID from shmget
|
||||
2. #1028: init_process: Inherit parent cpu_set
|
||||
3. #995: Fix shebang recorded in argv[0]
|
||||
4. #1024: Fix VMAP virtual address leak
|
||||
5. #1109: init_process_stack: Support "ulimit -s unlimited"
|
||||
6. x86 mem init: do not map identity mapping
|
||||
7. mcexec_wait_syscall: requeue potential request on interrupted wait
|
||||
8. mcctrl_ikc_send_wait: fix interrupt with do_frees == NULL
|
||||
9. pager_req_read: handle short read
|
||||
10. kprintf: only call eventfd() if it is safe to interrupt
|
||||
11. process_procfs_request: Add Pid to /proc/<PID>/status
|
||||
12. terminate: fix oversubscribe hang when waiting for other threads on same CPU to die
|
||||
13. mcexec: Do not close fd returned to mckernel side
|
||||
14. #976: execve: Clear sigaltstack and fp_regs
|
||||
15. #1002: perf_event: Specify counter by bit_mask on start/stop
|
||||
16. #1027: schedule: Don't reschedule immediately when wake up on migrate
|
||||
17. #mcctrl: lookup unexported symbols at runtime
|
||||
18. __sched_wakeup_thread: Notify interrupt_exit() of re-schedule
|
||||
19. futex_wait_queue_me: Spin-sleep when timeout and idle_halt is specified
|
||||
20. #1167: ihk_os_getperfevent,setperfevent: Timeout IKC sent by mcctrl
|
||||
21. devobj: fix object size (POSTK_DEBUG_TEMP_FIX_36)
|
||||
22. mcctrl: remove rus page cache
|
||||
23. #1021: procfs: Support multiple reads of e.g. ``/proc/*/maps``
|
||||
24. #1006: wait: Delay wake-up parent within switch context
|
||||
25. #1164: mem: Check if phys-mem is within the range of McKernel memory
|
||||
26. #1039: page_fault_process_memory_range: Remove ihk_mc_map_virtual for CoW of device map
|
||||
27. partitioned execution: pass process rank to LWK
|
||||
28. process/vm: implement access_ok()
|
||||
29. spinlock: rewrite spinlock to use Linux ticket head/tail format
|
||||
30. #986: Fix deadlock involving mmap_sem and memory_range_lock
|
||||
31. Prevent one CPU from getting chosen by concurrent forks
|
||||
32. #1009: check_signal: system call restart is done only once
|
||||
33. #1176: syscall: the signal received during system call processing is not processed.
|
||||
34. #1036 syscall_time: Handle by McKernel
|
||||
35. #1165 do_syscall: Delegate system calls to the mcexec with the same pid
|
||||
36. #1194 execve: Fix calling ptrace_report_signal after preemption is disabled
|
||||
37. #1005 coredump: Exclude special areas
|
||||
38. #1018 procfs: Fix pread/pwrite to procfs fail when specified size is bigger than 4MB
|
||||
39. #1180 sched_setaffinity: Check migration after decrementing in_interrupt
|
||||
40. #771, #1179, #1143 ptrace supports threads
|
||||
41. #1189 procfs/do_fork: wait until procfs entries are registered
|
||||
42. #1114 procfs: add '/proc/pid/stat' to mckernel side and fix its comm
|
||||
43. #1116 mcctrl procfs: check entry was returned before using it
|
||||
44. #1167 ihk_os_getperfevent,setperfevent: Return -ETIME when IKC timeouts
|
||||
45. mcexec/execve: fix shebangs handling
|
||||
46. procfs: handle 'comm' on mckernel side
|
||||
47. ihk_os_setperfevent: Return number of registered events
|
||||
48. mcexec: fix terminating zero after readlink()
|
||||
|
||||
===========================================
|
||||
Version 1.5.1 (July 9, 2018)
|
||||
===========================================
|
||||
|
||||
-----------------------------------------------
|
||||
McKernel major updates
|
||||
-----------------------------------------------
|
||||
|
||||
Watchdog timer to detect hang of McKernel
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
mcexec prints out the following line to its stderr when a hang of McKernel is detected.
|
||||
|
||||
::
|
||||
|
||||
mcexec detected hang of McKernel
|
||||
|
||||
The watchdog timer is enabled by passing -i <timeout_in_sec> option to mcreboot.sh. <timeout_in_sec> specifies the interval of checking if McKernel is alive.
|
||||
|
||||
For example, specify ``-i 600`` to detect the hang with 10 minutes interval:
|
||||
|
||||
::
|
||||
|
||||
mcreboot.sh -i 600
|
||||
|
||||
The detailed step of the hang detection is as follows.
|
||||
#. mcexec acquires eventfd for notification from IHK and perform epoll() on it.
|
||||
#. A daemon called ihkmond monitors the state of McKernel periodically with the interval specified by the -i option. It judges that McKernel is hanging and notifies mcexec by the eventfd if its state hasn't changed since the last check.
|
||||
|
||||
---------------------------
|
||||
McKernel major bug fixes
|
||||
---------------------------
|
||||
1. #1146: pager_req_map(): do not take mmap_sem if not needed
|
||||
2. #1135: prepare_process_ranges_args_envs(): fix saving cmdline
|
||||
3. #1144: fileobj/devobj: record path name
|
||||
4. #1145: fileobj: use MCS locks for per-file page hash
|
||||
5. #1076: mcctrl: refactor prepare_image into new generic ikc send&wait
|
||||
6. #1072: execve: fix execve with oversubscribing
|
||||
7. #1132: execve: use thread variable instead of cpu_local_var(current)
|
||||
8. #1117: mprotect: do not set page table writable for cow pages
|
||||
9. #1143: syscall wait4: add _WALL (POSTK_DEBUG_ARCH_DEP_44)
|
||||
10. #1064: rusage: Fix initialization of rusage->num_processors
|
||||
11. #1133: pager_req_unmap: Put per-process data at exit
|
||||
12. #731: do_fork: Propagate error code returned by mcexec
|
||||
13. #1149: execve: Reinitialize vm_regions's map area on execve
|
||||
14. #1065: procfs: Show file names in /proc/<PID>/maps
|
||||
15. #1112: mremap: Fix type of size arguments (from ssize_t to size_t)
|
||||
16. #1121: sched_getaffinity: Check arguments in the same order as in Linux
|
||||
17. #1137: mmap, mremap: Check arguments in the same order as in Linux
|
||||
18. #1122: fix return value of sched_getaffinity
|
||||
19. #732: fix: /proc/<PID>/maps outputs a unnecessary NULL character
|
||||
|
||||
===================================
|
||||
Version 1.5.0 (Apr 5, 2018)
|
||||
===================================
|
||||
|
||||
--------------------------------------
|
||||
McKernel major updates
|
||||
--------------------------------------
|
||||
1. Aid for Linux version migration: Detect /proc, /sys format change
|
||||
between two kernel verions
|
||||
2. Swap out
|
||||
* Only swap-out anonymous pages for now
|
||||
3. Improve support of /proc/maps
|
||||
4. mcstat: Linux tool to show resource usage
|
||||
|
||||
---------------------------
|
||||
McKernel major bug fixes
|
||||
---------------------------
|
||||
#. #727: execve: Fix memory leak when receiving SIGKILL
|
||||
#. #829: perf_event_open: Support PERF_TYPE_HARDWARE and PERF_TYPE_HW_CACHE
|
||||
#. #906: mcexec: Check return code of fork()
|
||||
#. #1038: mcexec: Timeout when incorrect value is given to -n option
|
||||
#. #943 #945 #946 #960 #961: mcexec: Support strace
|
||||
#. #1029: struct thread is not released with stress-test involving signal and futex
|
||||
#. #863 #870 : Respond immediately to terminating signal when offloading system call
|
||||
#. #1119: translate_rva_to_rpa(): use 2MB blocks in 1GB pages on x86
|
||||
#. #898: Shutdown OS only after no in-flight IKC exist
|
||||
#. #882: release_handler: Destroy objects as the process which opened it
|
||||
#. #882: mcexec: Make child process exit if the parent is killed during fork()
|
||||
#. #925: XPMEM: Don't destroy per-process object of the parent
|
||||
#. #885: ptrace: Support the case where a process attaches its child
|
||||
#. #1031: sigaction: Support SA_RESETHAND
|
||||
#. #923: rus_vm_fault: Return error when a thread not performing system call offloading causes remote page fault
|
||||
#. #1032 #1033 #1034: getrusage: Fix ru_maxrss, RUSAGE_CHILDREN, ru_stime related bugs
|
||||
#. #1120: getrusage: Fix deadlock on thread->times_update
|
||||
#. #1123: Fix deadlock related to wait_queue_head_list_node
|
||||
#. #1124: Fix deadlock of calling terminate() from terminate()
|
||||
#. #1125: Fix deadlock related to thread status
|
||||
|
||||
* Related functions are: hold_thread(), do_kill() and terminate()
|
||||
|
||||
#. #1126: uti: Fix uti thread on the McKernel side blocks others in do_syscall()
|
||||
#. #1066: procfs: Show Linux /proc/self/cgroup
|
||||
#. #1127: prepare_process_ranges_args_envs(): fix generating saved_cmdline to avoid PF in strlen()
|
||||
#. #1128: ihk_mc_map/unmap_virtual(): do proper TLB invalidation
|
||||
#. #1043: terminate(): fix update_lock and threads_lock order to avoid deadlock
|
||||
#. #1129: mcreboot.sh: Save ``/proc/irq/*/smp_affinity`` to ``/tmp/mcreboot``
|
||||
#. #1130: mcexec: drop READ_IMPLIES_EXEC from personality
|
||||
|
||||
--------------------
|
||||
McKernel workarounds
|
||||
--------------------
|
||||
#. Forbid CPU oversubscription
|
||||
|
||||
* It can be turned on by mcreboot.sh -O option
|
||||
|
||||
|
||||
===================================
|
||||
Version 1.4.0 (Oct 30, 2017)
|
||||
===================================
|
||||
|
||||
-----------------------------------------------------------
|
||||
Abstracted event type support in perf_event_open()
|
||||
-----------------------------------------------------------
|
||||
|
||||
PERF_TYPE_HARDWARE and PERF_TYPE_CACHE types are supported.
|
||||
|
||||
----------------------------------
|
||||
Direct user-space access
|
||||
----------------------------------
|
||||
Code lines using direct user-space access (e.g. passing user-space
|
||||
pointer to memcpy()) becomes more portable across processor
|
||||
architectures. The modification follows the following rules.
|
||||
|
||||
1. Move the code section as it is to the architecture dependent
|
||||
directory if it is a part of the critical-path.
|
||||
2. Otherwise, rewrite the code section by using the portable methods.
|
||||
The methods include copy_from_user(), copy_to_user(),
|
||||
pte_get_phys() and phys_to_virt().
|
||||
|
||||
--------------------------------
|
||||
MPI and OpenMP micro-bench tests
|
||||
--------------------------------
|
||||
The performance figures of MPI and OpenMP primitives are compared with
|
||||
those of Linux by using Intel MPI Benchmarks and EPCC OpenMP Micro
|
||||
Benchmark.
|
||||
|
||||
|
||||
===================================
|
||||
Version 1.3.0 (Sep 30, 2017)
|
||||
===================================
|
||||
|
||||
--------------------
|
||||
Kernel dump
|
||||
--------------------
|
||||
#. A dump level of "only kernel memory" is added.
|
||||
|
||||
The following two levels are available now:
|
||||
|
||||
+--+-----------------------+
|
||||
| 0|Dump all |
|
||||
+--+-----------------------+
|
||||
|24|Dump only kernel memory|
|
||||
+--+-----------------------+
|
||||
|
||||
The dump level can be set by -d option in ihkosctl or the argument
|
||||
for ihk_os_makedumpfile(), as shown in the following examples:
|
||||
|
||||
::
|
||||
|
||||
Command: ihkosctl 0 dump -d 24
|
||||
Function call: ihk_os_makedumpfile(0, NULL, 24, 0);
|
||||
|
||||
#. Dump file is created when Linux panics.
|
||||
|
||||
The dump level can be set by dump_level kernel argument, as shown in the
|
||||
following example:
|
||||
|
||||
::
|
||||
|
||||
ihkosctl 0 kargs "hidos dump_level=24"
|
||||
|
||||
The IHK dump function is registered to panic_notifier_list when creating /dev/mcdX and called when Linux panics.
|
||||
|
||||
-----------------------------
|
||||
Quick Process Launch
|
||||
-----------------------------
|
||||
|
||||
MPI process launch time and some of the initialization time can be
|
||||
reduced in application consisting of multiple MPI programs which are
|
||||
launched in turn in the job script.
|
||||
|
||||
The following two steps should be performed to use this feature:
|
||||
#. Replace mpiexec with ql_mpiexec_start and add some lines for ql_mpiexec_finalize in the job script
|
||||
#. Modify the app so that it can repeat calculations and wait for the instructions from ql_mpiexec_{start,finalize} at the end of the loop
|
||||
|
||||
The first step is explained using an example. Assume the original job script looks like this:
|
||||
|
||||
.. code-block:: none
|
||||
|
||||
/* Execute ensamble simulation and then data assimilation, and repeat this ten times */
|
||||
for i in {1..10}; do
|
||||
|
||||
/* Each ensamble simulation execution uses 100 nodes, launch ten of them in parallel */
|
||||
for j in {1..10}; do
|
||||
mpiexec -n 100 -machinefile ./list1_$j p1.out a1 & pids[$i]=$!;
|
||||
done
|
||||
|
||||
/* Wait until the ten ensamble simulation programs finish */
|
||||
for j in {1..10}; do wait ${pids[$j]}; done
|
||||
|
||||
/* Launch one data assimilation program using 1000 nodes */
|
||||
mpiexec -n 1000 -machinefile ./list2 p2.out a2
|
||||
done
|
||||
|
||||
The job script should be modified like this:
|
||||
|
||||
.. code-block:: none
|
||||
|
||||
for i in {1..10}; do
|
||||
for j in {1..10}; do
|
||||
/* Replace mpiexec with ql_mpiexec_start */
|
||||
ql_mpiexec_start -n 100 -machinefile ./list1_$j p1.out a1 & pids[$j]=$!;
|
||||
done
|
||||
|
||||
for j in {1..10}; do wait ${pids[$j]}; done
|
||||
|
||||
ql_mpiexec_start -n 1000 -machinefile ./list2 p2.out a2
|
||||
done
|
||||
|
||||
/* p1.out and p2.out don't exit but are waiting for the next calculation. So tell them to exit */
|
||||
for j in {1..10}; do
|
||||
ql_mpiexec_finalize -machinefile ./list1_$i p1.out a1;
|
||||
done
|
||||
|
||||
ql_mpiexec_finalize -machinefile ./list2 p2.out a2;
|
||||
|
||||
The second step is explained using a pseudo-code.
|
||||
|
||||
.. code-block:: none
|
||||
|
||||
MPI_Init();
|
||||
Prepare data exchange with preceding / following MPI programs
|
||||
loop:
|
||||
foreach Fortran module
|
||||
Initialize data using command-line argments, parameter files, environment variables
|
||||
Input data from preceding MPI programs / Read snap-shot
|
||||
Perform main calculation
|
||||
Output data to following MPI programs / Write snap-shot
|
||||
/* ql_client() waits for command of ql_mpiexec_{start,finish} */
|
||||
if (ql_client() == QL_CONTINUE) { goto loop; }
|
||||
MPI_Finalize();
|
||||
|
||||
qlmpilib.h should be included in the code and libql{mpi,fort}.so should be linked to the executable file.
|
||||
65
docs/archtecture.rst
Normal file
65
docs/archtecture.rst
Normal file
@ -0,0 +1,65 @@
|
||||
Architectural Overview
|
||||
======================
|
||||
|
||||
At the heart of the stack is a low-level software infrastructure called
|
||||
Interface for Heterogeneous Kernels (IHK). IHK is a general framework
|
||||
that provides capabilities for partitioning resources in a many-core
|
||||
environment (e.g.,CPU cores and physical memory) and it enables
|
||||
management of lightweight kernels. IHK can allocate and release host
|
||||
resources dynamically and no reboot of the host machine is required when
|
||||
altering configuration. IHK also provides a low-level inter-kernel
|
||||
messaging infrastructure, called the Inter-Kernel Communication (IKC)
|
||||
layer. An architectural overview of the main system components is shown
|
||||
below.
|
||||
|
||||
.. figure:: mckernel.png
|
||||
:alt: arch
|
||||
|
||||
McKernel is a lightweight kernel written from scratch. It is designed
|
||||
for HPC and is booted from IHK. McKernel retains a binary compatible ABI
|
||||
with Linux, however, it implements only a small set of performance
|
||||
sensitive system calls and the rest are offloaded to Linux.
|
||||
Specifically, McKernel has its own memory management, it supports
|
||||
processes and multi-threading with a simple round-robin cooperative
|
||||
(tick-less) scheduler, and it implements signaling. It also allows
|
||||
inter-process memory mappings and it provides interfaces to hardware
|
||||
performance counters.
|
||||
|
||||
Functionality
|
||||
-------------
|
||||
|
||||
An overview of some of the principal functionalities of the IHK/McKernel
|
||||
stack is provided below.
|
||||
|
||||
System Call Offloading
|
||||
~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
System call forwarding in McKernel is implemented as follows. When an
|
||||
offloaded system call occurs, McKernel marshals the system call number
|
||||
along with its arguments and sends a message to Linux via a dedicated
|
||||
IKC channel. The corresponding proxy process running on Linux is by
|
||||
default waiting for system call requests through an ioctl() call into
|
||||
IHK’s system call delegator kernel module. The delegator kernel module’s
|
||||
IKC interrupt handler wakes up the proxy process, which returns to
|
||||
userspace and simply invokes the requested system call. Once it obtains
|
||||
the return value, it instructs the delegator module to send the result
|
||||
back to McKernel, which subsequently passes the value to user-space.
|
||||
|
||||
Unified Address Space
|
||||
~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
The unified address space model in IHK/McKernel ensures that offloaded
|
||||
system calls can seamlessly resolve arguments even in case of pointers.
|
||||
This mechanism is depicted below and is implemented as follows.
|
||||
|
||||
.. figure:: unified_address_space_en.png
|
||||
:alt: unified_ap
|
||||
|
||||
First, the proxy process is compiled as a position independent binary,
|
||||
which enables us to map the code and data segments specific to the proxy
|
||||
process to an address range which is explicitly excluded from McKernel’s
|
||||
user space. The grey box on the right side of the figure demonstrates
|
||||
the excluded region. Second, the entire valid virtual address range of
|
||||
McKernel’s application user-space is covered by a special mapping in the
|
||||
proxy process for which we use a pseudo file mapping in Linux. This
|
||||
mapping is indicated by the blue box on the left side of the figure.
|
||||
47
docs/background.rst
Normal file
47
docs/background.rst
Normal file
@ -0,0 +1,47 @@
|
||||
Background and Motivation
|
||||
=========================
|
||||
|
||||
With the growing complexity of high-end supercomputers, the current
|
||||
system software stack faces significant challenges as we move forward to
|
||||
exascale and beyond. The necessity to deal with extreme degree of
|
||||
parallelism, heterogeneous architectures, multiple levels of memory
|
||||
hierarchy, power constraints, etc., advocates operating systems that can
|
||||
rapidly adapt to new hardware requirements, and that can support novel
|
||||
programming paradigms and runtime systems. On the other hand, a new
|
||||
class of more dynamic and complex applications are also on the horizon,
|
||||
with an increasing demand for application constructs such as in-situ
|
||||
analysis, workflows, elaborate monitoring and performance tools. This
|
||||
complexity relies not only on the rich features of POSIX, but also on
|
||||
the Linux APIs (such as the */proc*, */sys* filesystems, etc.) in
|
||||
particular.
|
||||
|
||||
Two Traditional HPC OS Approaches
|
||||
---------------------------------
|
||||
|
||||
Traditionally, light-weight operating systems specialized for HPC
|
||||
followed two approaches to tackle scalable execution of large-scale
|
||||
applications. In the full weight kernel (FWK) approach, a full Linux
|
||||
environment is taken as the basis, and features that inhibit attaining
|
||||
HPC scalability are removed, i.e., making it light-weight. The pure
|
||||
light-weight kernel (LWK) approach, on the other hand, starts from
|
||||
scratch and effort is undertaken to add sufficient functionality so that
|
||||
it provides a familiar API, typically something close to that of a
|
||||
general purpose OS, while at the same time it retains the desired
|
||||
scalability and reliability attributes. Neither of these approaches
|
||||
yields a fully Linux compatible environment.
|
||||
|
||||
The Multi-kernel Approach
|
||||
-------------------------
|
||||
|
||||
A hybrid approach recognized recently by the system software community
|
||||
is to run Linux simultaneously with a lightweight kernel on compute
|
||||
nodes and multiple research projects are now pursuing this direction.
|
||||
The basic idea is that simulations run on an HPC tailored lightweight
|
||||
kernel, ensuring the necessary isolation for noiseless execution of
|
||||
parallel applications, but Linux is leveraged so that the full POSIX API
|
||||
is supported. Additionally, the small code base of the LWK can also
|
||||
facilitate rapid prototyping for new, exotic hardware features.
|
||||
Nevertheless, the questions of how to share node resources between the
|
||||
two types of kernels, where do device drivers execute, how exactly do
|
||||
the two kernels interact with each other and to what extent are they
|
||||
integrated, remain subjects of ongoing debate.
|
||||
60
docs/boot_run_shutdown.rst
Normal file
60
docs/boot_run_shutdown.rst
Normal file
@ -0,0 +1,60 @@
|
||||
Boot McKernel
|
||||
----------------
|
||||
|
||||
A boot script called ``mcreboot.sh`` is provided under ``sbin`` in the install
|
||||
folder. To boot on logical CPU 1 with 512MB of memory, use the following
|
||||
invocation:
|
||||
|
||||
::
|
||||
|
||||
export TOP=${HOME}/ihk+mckernel/
|
||||
cd ${TOP}
|
||||
sudo ./sbin/mcreboot.sh -c 1 -m 512m
|
||||
|
||||
You should see something similar like this if you display the McKernel’s
|
||||
kernel message log:
|
||||
|
||||
.. code-block:: none
|
||||
|
||||
./sbin/ihkosctl 0 kmsg
|
||||
|
||||
IHK/McKernel started.
|
||||
[ -1]: no_execute_available: 1
|
||||
[ -1]: map_fixed: phys: 0xfee00000 => 0xffff860000009000 (1 pages)
|
||||
[ -1]: setup_x86 done.
|
||||
[ -1]: ns_per_tsc: 385
|
||||
[ -1]: KCommand Line: hidos dump_level=24
|
||||
[ -1]: Physical memory: 0x1ad3000 - 0x21000000, 525520896 bytes, 128301 pages available @ NUMA: 0
|
||||
[ -1]: NUMA: 0, Linux NUMA: 0, type: 1, available bytes: 525520896, pages: 128301
|
||||
[ -1]: NUMA 0 distances: 0 (10),
|
||||
[ -1]: map_fixed: phys: 0x28000 => 0xffff86000000a000 (2 pages)
|
||||
[ -1]: Trampoline area: 0x28000
|
||||
[ -1]: map_fixed: phys: 0x0 => 0xffff86000000c000 (1 pages)
|
||||
[ -1]: # of cpus : 1
|
||||
[ -1]: locals = ffff880001af6000
|
||||
[ 0]: BSP: 0 (HW ID: 1 @ NUMA 0)
|
||||
[ 0]: BSP: booted 0 AP CPUs
|
||||
[ 0]: Master channel init acked.
|
||||
[ 0]: vdso is enabled
|
||||
IHK/McKernel booted.
|
||||
|
||||
Run a simple program on McKernel
|
||||
-----------------------------------
|
||||
|
||||
The mcexec command line tool (which is also the Linux proxy process) can
|
||||
be used for executing applications on McKernel:
|
||||
|
||||
::
|
||||
|
||||
./bin/mcexec hostname
|
||||
centos-vm
|
||||
|
||||
Shutdown McKernel
|
||||
--------------------
|
||||
|
||||
Finally, to shutdown McKernel and release CPU/memory resources back to
|
||||
Linux use the following command:
|
||||
|
||||
::
|
||||
|
||||
sudo ./sbin/mcstop+release.sh
|
||||
173
docs/conf.py
Normal file
173
docs/conf.py
Normal file
@ -0,0 +1,173 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
#
|
||||
# Configuration file for the Sphinx documentation builder.
|
||||
#
|
||||
# This file does only contain a selection of the most common options. For a
|
||||
# full list see the documentation:
|
||||
# http://www.sphinx-doc.org/en/master/config
|
||||
|
||||
# -- Path setup --------------------------------------------------------------
|
||||
|
||||
# If extensions (or modules to document with autodoc) are in another directory,
|
||||
# add these directories to sys.path here. If the directory is relative to the
|
||||
# documentation root, use os.path.abspath to make it absolute, like shown here.
|
||||
#
|
||||
# import os
|
||||
# import sys
|
||||
# sys.path.insert(0, os.path.abspath('.'))
|
||||
|
||||
|
||||
# -- Project information -----------------------------------------------------
|
||||
|
||||
project = u'IHK/McKernel'
|
||||
copyright = u'2020, Masamichi Takagi, Balazs Gerofi, Yutaka Ishikawa'
|
||||
author = u'Masamichi Takagi, Balazs Gerofi, Yutaka Ishikawa'
|
||||
|
||||
# The short X.Y version
|
||||
version = u''
|
||||
# The full version, including alpha/beta/rc tags
|
||||
release = u''
|
||||
|
||||
|
||||
# -- General configuration ---------------------------------------------------
|
||||
|
||||
# If your documentation needs a minimal Sphinx version, state it here.
|
||||
#
|
||||
# needs_sphinx = '1.0'
|
||||
|
||||
# Add any Sphinx extension module names here, as strings. They can be
|
||||
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
|
||||
# ones.
|
||||
extensions = [
|
||||
'recommonmark',
|
||||
]
|
||||
numfig = True
|
||||
|
||||
# Add any paths that contain templates here, relative to this directory.
|
||||
templates_path = ['_templates']
|
||||
|
||||
# The suffix(es) of source filenames.
|
||||
# You can specify multiple suffix as a list of string:
|
||||
source_suffix = ['.rst', '.md']
|
||||
|
||||
# The master toctree document.
|
||||
master_doc = 'index'
|
||||
|
||||
# The language for content autogenerated by Sphinx. Refer to documentation
|
||||
# for a list of supported languages.
|
||||
#
|
||||
# This is also used if you do content translation via gettext catalogs.
|
||||
# Usually you set "language" from the command line for these cases.
|
||||
language = None
|
||||
|
||||
# List of patterns, relative to source directory, that match files and
|
||||
# directories to ignore when looking for source files.
|
||||
# This pattern also affects html_static_path and html_extra_path.
|
||||
exclude_patterns = [u'_build', 'Thumbs.db', '.DS_Store']
|
||||
|
||||
# The name of the Pygments (syntax highlighting) style to use.
|
||||
pygments_style = None
|
||||
|
||||
|
||||
# -- Options for HTML output -------------------------------------------------
|
||||
|
||||
# The theme to use for HTML and HTML Help pages. See the documentation for
|
||||
# a list of builtin themes.
|
||||
#
|
||||
html_theme = 'sphinx_rtd_theme'
|
||||
|
||||
# Theme options are theme-specific and customize the look and feel of a theme
|
||||
# further. For a list of options available for each theme, see the
|
||||
# documentation.
|
||||
#
|
||||
# html_theme_options = {}
|
||||
|
||||
# Add any paths that contain custom static files (such as style sheets) here,
|
||||
# relative to this directory. They are copied after the builtin static files,
|
||||
# so a file named "default.css" will overwrite the builtin "default.css".
|
||||
html_static_path = ['_static']
|
||||
|
||||
# Custom sidebar templates, must be a dictionary that maps document names
|
||||
# to template names.
|
||||
#
|
||||
# The default sidebars (for documents that don't match any pattern) are
|
||||
# defined by theme itself. Builtin themes are using these templates by
|
||||
# default: ``['localtoc.html', 'relations.html', 'sourcelink.html',
|
||||
# 'searchbox.html']``.
|
||||
#
|
||||
# html_sidebars = {}
|
||||
|
||||
|
||||
# -- Options for HTMLHelp output ---------------------------------------------
|
||||
|
||||
# Output file base name for HTML help builder.
|
||||
htmlhelp_basename = 'IHKMcKerneldoc'
|
||||
|
||||
|
||||
# -- Options for LaTeX output ------------------------------------------------
|
||||
|
||||
latex_elements = {
|
||||
# The paper size ('letterpaper' or 'a4paper').
|
||||
#
|
||||
# 'papersize': 'letterpaper',
|
||||
|
||||
# The font size ('10pt', '11pt' or '12pt').
|
||||
#
|
||||
# 'pointsize': '10pt',
|
||||
|
||||
# Additional stuff for the LaTeX preamble.
|
||||
#
|
||||
# 'preamble': '',
|
||||
|
||||
# Latex figure (float) alignment
|
||||
#
|
||||
# 'figure_align': 'htbp',
|
||||
}
|
||||
|
||||
# Grouping the document tree into LaTeX files. List of tuples
|
||||
# (source start file, target name, title,
|
||||
# author, documentclass [howto, manual, or own class]).
|
||||
latex_documents = [
|
||||
(master_doc, 'IHKMcKernel.tex', u'IHK/McKernel Documentation',
|
||||
u'Masamichi Takagi, Balazs Gerofi, Yutaka Ishikawa', 'manual'),
|
||||
]
|
||||
|
||||
|
||||
# -- Options for manual page output ------------------------------------------
|
||||
|
||||
# One entry per manual page. List of tuples
|
||||
# (source start file, name, description, authors, manual section).
|
||||
man_pages = [
|
||||
(master_doc, 'ihkmckernel', u'IHK/McKernel Documentation',
|
||||
[author], 1)
|
||||
]
|
||||
|
||||
|
||||
# -- Options for Texinfo output ----------------------------------------------
|
||||
|
||||
# Grouping the document tree into Texinfo files. List of tuples
|
||||
# (source start file, target name, title, author,
|
||||
# dir menu entry, description, category)
|
||||
texinfo_documents = [
|
||||
(master_doc, 'IHKMcKernel', u'IHK/McKernel Documentation',
|
||||
author, 'IHKMcKernel', 'One line description of project.',
|
||||
'Miscellaneous'),
|
||||
]
|
||||
|
||||
|
||||
# -- Options for Epub output -------------------------------------------------
|
||||
|
||||
# Bibliographic Dublin Core info.
|
||||
epub_title = project
|
||||
|
||||
# The unique identifier of the text. This can be a ISBN number
|
||||
# or the project homepage.
|
||||
#
|
||||
# epub_identifier = ''
|
||||
|
||||
# A unique identification for the text.
|
||||
#
|
||||
# epub_uid = ''
|
||||
|
||||
# A list of files that should not be packed into the epub file.
|
||||
epub_exclude_files = ['search.html']
|
||||
11
docs/contact.rst
Normal file
11
docs/contact.rst
Normal file
@ -0,0 +1,11 @@
|
||||
Contact
|
||||
=======
|
||||
|
||||
Please give your feedback to us via one of the following mailing lists.
|
||||
Subscription via
|
||||
`www.pccluster.org <http://www.pccluster.org/mailman/listinfo/mckernel-users>`__
|
||||
is needed.
|
||||
|
||||
- English: mckernel-users@pccluster.org
|
||||
- Japanese: mckernel-users-jp@pccluster.org
|
||||
|
||||
5
docs/cover.rst
Normal file
5
docs/cover.rst
Normal file
@ -0,0 +1,5 @@
|
||||
.. include:: logo.rst
|
||||
|
||||
.. include:: summary.rst
|
||||
|
||||
See `Quick Guide -- Installation <quick.html#installation>`__ for jump start.
|
||||
5
docs/doc.rst
Normal file
5
docs/doc.rst
Normal file
@ -0,0 +1,5 @@
|
||||
Documentation
|
||||
=============
|
||||
|
||||
Documentation is available
|
||||
`here <https://ihkmckernel.readthedocs.io>`__.
|
||||
BIN
docs/ihk.pdf
Normal file
BIN
docs/ihk.pdf
Normal file
Binary file not shown.
18
docs/ihk_developers.rst
Normal file
18
docs/ihk_developers.rst
Normal file
@ -0,0 +1,18 @@
|
||||
.. sectnum::
|
||||
:suffix: .
|
||||
:depth: 3
|
||||
|
||||
External Specs
|
||||
==============
|
||||
|
||||
Overview
|
||||
--------
|
||||
|
||||
Function Specs
|
||||
--------------
|
||||
|
||||
Command / Daemon Specs
|
||||
----------------------
|
||||
|
||||
Booting LWK
|
||||
===========
|
||||
58
docs/index.rst
Normal file
58
docs/index.rst
Normal file
@ -0,0 +1,58 @@
|
||||
.. IHK/McKernel documentation master file, created by
|
||||
sphinx-quickstart on Mon Jul 27 15:57:24 2020.
|
||||
You can adapt this file completely to your liking, but it should at least
|
||||
contain the root `toctree` directive.
|
||||
|
||||
===================
|
||||
IHK/McKernel
|
||||
===================
|
||||
|
||||
.. include:: cover.rst
|
||||
|
||||
.. toctree::
|
||||
:maxdepth: 2
|
||||
:caption: Quick Guide
|
||||
|
||||
quick
|
||||
|
||||
.. toctree::
|
||||
:maxdepth: 2
|
||||
:caption: Users' Guide
|
||||
|
||||
users
|
||||
|
||||
.. toctree::
|
||||
:maxdepth: 2
|
||||
:caption: Operators' Guide
|
||||
|
||||
operators
|
||||
|
||||
.. toctree::
|
||||
:maxdepth: 2
|
||||
:caption: IHK Developers' Guide
|
||||
|
||||
ihk_developers
|
||||
|
||||
.. toctree::
|
||||
:maxdepth: 2
|
||||
:caption: McKernel Developers' Guide
|
||||
|
||||
mckernel_developers
|
||||
|
||||
.. toctree::
|
||||
:maxdepth: 2
|
||||
:caption: IHK Specifications
|
||||
|
||||
spec/ihk
|
||||
|
||||
.. toctree::
|
||||
:maxdepth: 2
|
||||
:caption: McKernel Specifications
|
||||
|
||||
spec/mckernel
|
||||
|
||||
.. toctree::
|
||||
:maxdepth: 2
|
||||
:caption: What's New
|
||||
|
||||
NEWS
|
||||
202
docs/install.rst
Normal file
202
docs/install.rst
Normal file
@ -0,0 +1,202 @@
|
||||
.. highlight:: bash
|
||||
|
||||
Installation
|
||||
============
|
||||
|
||||
The following OS distributions and platforms are recommended:
|
||||
|
||||
* OS distribution
|
||||
|
||||
* CentOS 7.3 or later
|
||||
* RHEL 7.3 or later
|
||||
|
||||
* Platform
|
||||
|
||||
* Intel Xeon
|
||||
* Intel Xeon Phi
|
||||
* Fujitsu A64FX
|
||||
|
||||
Prepare files for building McKernel
|
||||
-----------------------------------
|
||||
|
||||
Grant read permission to the System.map file of your kernel version on the build machine:
|
||||
|
||||
::
|
||||
|
||||
sudo chmod a+r /boot/System.map-`uname -r`
|
||||
|
||||
Install the following packages to the build machine:
|
||||
|
||||
::
|
||||
|
||||
cmake kernel-devel binutils-devel systemd-devel numactl-devel gcc make nasm git libdwarf-devel
|
||||
|
||||
When having access to repositories
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
On RHEL 8, enable the CodeReady Linux Builder (CLB) repository:
|
||||
|
||||
::
|
||||
|
||||
sudo subscription-manager repos --enable codeready-builder-for-rhel-8-$(/bin/arch)-rpms
|
||||
|
||||
On CentOS 8, enable the PowerTools repository:
|
||||
|
||||
::
|
||||
|
||||
sudo dnf config-manager --set-enabled PowerTools
|
||||
|
||||
Install with yum:
|
||||
|
||||
::
|
||||
|
||||
sudo yum install cmake kernel-devel binutils-devel systemd-devel numactl-devel gcc make nasm git libdwarf-devel
|
||||
|
||||
When not having access to repositories
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
Ask the system administrator to install them. Note that ``libdwarf-devel`` is in the CodeReady Linux Builder repository on RHEL 8 or in the PowerTools repository on CentOS 8.
|
||||
|
||||
Clone, compile, install
|
||||
--------------------------
|
||||
|
||||
Clone the source code:
|
||||
|
||||
::
|
||||
|
||||
mkdir -p ~/src/ihk+mckernel/
|
||||
cd ~/src/ihk+mckernel/
|
||||
git clone --recursive -b development https://github.com/RIKEN-SysSoft/mckernel.git
|
||||
|
||||
(Optional) Checkout to the specific branch or version:
|
||||
|
||||
::
|
||||
|
||||
cd mckernel
|
||||
git checkout <pathspec>
|
||||
git submodule update
|
||||
|
||||
Foe example, if you want to try the development branch, use
|
||||
“development” as the pathspec. If you want to try the prerelease version
|
||||
1.7.0-0.2, use “1.7.0-0.2”.
|
||||
|
||||
Move to build directory:
|
||||
|
||||
::
|
||||
|
||||
mkdir -p ~/src/ihk+mckernel/build && cd ~/src/ihk+mckernel/build
|
||||
|
||||
Run cmake:
|
||||
|
||||
When not cross-compiling:
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
::
|
||||
|
||||
cmake -DCMAKE_INSTALL_PREFIX=${HOME}/ihk+mckernel ../mckernel
|
||||
|
||||
When cross-compiling:
|
||||
~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
::
|
||||
|
||||
cmake -DCMAKE_INSTALL_PREFIX=${HOME}/ihk+mckernel \
|
||||
-DUNAME_R=<target_uname_r> \
|
||||
-DKERNEL_DIR=<kernnel_dir> \
|
||||
-DBUILD_TARGET=smp-arm64 \
|
||||
-DCMAKE_TOOLCHAIN_FILE=../mckernel/cmake/cross-aarch64.cmake \
|
||||
../mckernel
|
||||
|
||||
Install with cmake
|
||||
~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
Install with make:
|
||||
|
||||
::
|
||||
|
||||
make -j install
|
||||
|
||||
The kernel modules and McKernel kernel image should be installed
|
||||
under the **ihk+mckernel** folder in your home directory.
|
||||
|
||||
Install with rpm
|
||||
~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
Create the tarball and the spec file:
|
||||
|
||||
::
|
||||
|
||||
make dist
|
||||
cp mckernel-<version>.tar.gz <rpmbuild>/SOURCES
|
||||
|
||||
Create the rpm package:
|
||||
|
||||
When not cross-compiling:
|
||||
"""""""""""""""""""""""""
|
||||
|
||||
::
|
||||
|
||||
rpmbuild -ba scripts/mckernel.spec
|
||||
|
||||
When cross-compiling:
|
||||
"""""""""""""""""""""
|
||||
|
||||
::
|
||||
|
||||
rpmbuild -ba scripts/mckernel.spec --target <target_uname_m> -D 'kernel_version <target_uname_r>' -D 'kernel_dir <kernel_source>'
|
||||
|
||||
Install the rpm package:
|
||||
|
||||
::
|
||||
|
||||
sudo rpm -ivh <rpmbuild>/RPMS/<arch>/mckernel-<version>-<release>_<linux_kernel_ver>_<dist>.<arch>.rpm
|
||||
|
||||
The kernel modules and McKernel kernel image are installed under the
|
||||
standard system directories.
|
||||
|
||||
Prepare files and change settings for installing McKernel
|
||||
---------------------------------------------------------
|
||||
|
||||
Disable SELinux of the compute nodes:
|
||||
|
||||
::
|
||||
|
||||
sudo vim /etc/selinux/config
|
||||
|
||||
Change the file to SELINUX=disabled. And then reboot the compute nodes:
|
||||
|
||||
::
|
||||
|
||||
sudo reboot
|
||||
|
||||
Install the following packages to the compute nodes:
|
||||
|
||||
::
|
||||
|
||||
systemd-libs numactl-libs libdwarf
|
||||
|
||||
When having access to repositories
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
On RHEL 8, enable the CodeReady Linux Builder (CLB) repository:
|
||||
|
||||
::
|
||||
|
||||
sudo subscription-manager repos --enable codeready-builder-for-rhel-8-$(/bin/arch)-rpms
|
||||
|
||||
On CentOS 8, enable the PowerTools repository:
|
||||
|
||||
::
|
||||
|
||||
sudo dnf config-manager --set-enabled PowerTools
|
||||
|
||||
Install with yum:
|
||||
|
||||
::
|
||||
|
||||
sudo yum install systemd-libs numactl-libs libdwarf
|
||||
|
||||
When not having access to repositories
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
Ask the system administrator to install them. Note that ``libdwarf`` is in the CodeReady Linux Builder repository on RHEL 8 or in the PowerTools repository on CentOS 8.
|
||||
5
docs/license.rst
Normal file
5
docs/license.rst
Normal file
@ -0,0 +1,5 @@
|
||||
License
|
||||
=======
|
||||
|
||||
McKernel is GPL licensed, as found in the LICENSE file.
|
||||
|
||||
1077
docs/locales/ja/LC_MESSAGES/NEWS.po
Normal file
1077
docs/locales/ja/LC_MESSAGES/NEWS.po
Normal file
File diff suppressed because it is too large
Load Diff
469
docs/locales/ja/LC_MESSAGES/README_.po
Normal file
469
docs/locales/ja/LC_MESSAGES/README_.po
Normal file
@ -0,0 +1,469 @@
|
||||
# SOME DESCRIPTIVE TITLE.
|
||||
# Copyright (C) 2020, Masamichi Takagi, Balazs Gerofi, Yutaka Ishikawa
|
||||
# This file is distributed under the same license as the IHK/McKernel
|
||||
# package.
|
||||
# FIRST AUTHOR <EMAIL@ADDRESS>, 2020.
|
||||
#
|
||||
#, fuzzy
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: IHK/McKernel \n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2020-08-04 16:40+0900\n"
|
||||
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
||||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
||||
"Language-Team: LANGUAGE <LL@li.org>\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=utf-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Generated-By: Babel 2.7.0\n"
|
||||
|
||||
#: ../../README_.rst:2
|
||||
msgid "|McKernel Logo|"
|
||||
msgstr ""
|
||||
|
||||
#: ../../README_.rst:4
|
||||
msgid ""
|
||||
"IHK/McKernel is a light-weight multi-kernel operating system designed for"
|
||||
" high-end supercomputing. It runs Linux and McKernel, a light-weight "
|
||||
"kernel (LWK), side-by-side inside compute nodes and aims at the "
|
||||
"following:"
|
||||
msgstr ""
|
||||
|
||||
#: ../../README_.rst:9
|
||||
msgid ""
|
||||
"Provide scalable and consistent execution of large-scale parallel "
|
||||
"scientific applications, but at the same time maintain the ability to "
|
||||
"rapidly adapt to new hardware features and emerging programming models"
|
||||
msgstr ""
|
||||
|
||||
#: ../../README_.rst:13
|
||||
msgid ""
|
||||
"Provide efficient memory and device management so that resource "
|
||||
"contention and data movement are minimized at the system level"
|
||||
msgstr ""
|
||||
|
||||
#: ../../README_.rst:15
|
||||
msgid ""
|
||||
"Eliminate OS noise by isolating OS services in Linux and provide jitter "
|
||||
"free execution on the LWK"
|
||||
msgstr ""
|
||||
|
||||
#: ../../README_.rst:17
|
||||
msgid ""
|
||||
"Support the full POSIX/Linux APIs by selectively offloading (slow-path) "
|
||||
"system calls to Linux"
|
||||
msgstr ""
|
||||
|
||||
#: ../../README_.rst:21
|
||||
msgid "Documentation"
|
||||
msgstr ""
|
||||
|
||||
#: ../../README_.rst:23
|
||||
msgid "Documentation is available `here <https://ihkmckernel.readthedocs.io>`__."
|
||||
msgstr ""
|
||||
|
||||
#: ../../README_.rst:27
|
||||
msgid "Contents"
|
||||
msgstr ""
|
||||
|
||||
#: ../../README_.rst:29
|
||||
msgid "`Background <#background-and-motivation>`__"
|
||||
msgstr ""
|
||||
|
||||
#: ../../README_.rst:30
|
||||
msgid "`Architectural Overview <#architectural-overview>`__"
|
||||
msgstr ""
|
||||
|
||||
#: ../../README_.rst:31
|
||||
msgid "`Installation <#installation>`__"
|
||||
msgstr ""
|
||||
|
||||
#: ../../README_.rst:32
|
||||
msgid "`The Team <#the-team>`__"
|
||||
msgstr ""
|
||||
|
||||
#: ../../README_.rst:35
|
||||
msgid "Background and Motivation"
|
||||
msgstr ""
|
||||
|
||||
#: ../../README_.rst:37
|
||||
msgid ""
|
||||
"With the growing complexity of high-end supercomputers, the current "
|
||||
"system software stack faces significant challenges as we move forward to "
|
||||
"exascale and beyond. The necessity to deal with extreme degree of "
|
||||
"parallelism, heterogeneous architectures, multiple levels of memory "
|
||||
"hierarchy, power constraints, etc., advocates operating systems that can "
|
||||
"rapidly adapt to new hardware requirements, and that can support novel "
|
||||
"programming paradigms and runtime systems. On the other hand, a new class"
|
||||
" of more dynamic and complex applications are also on the horizon, with "
|
||||
"an increasing demand for application constructs such as in-situ analysis,"
|
||||
" workflows, elaborate monitoring and performance tools. This complexity "
|
||||
"relies not only on the rich features of POSIX, but also on the Linux APIs"
|
||||
" (such as the */proc*, */sys* filesystems, etc.) in particular."
|
||||
msgstr ""
|
||||
|
||||
#: ../../README_.rst:52
|
||||
msgid "Two Traditional HPC OS Approaches"
|
||||
msgstr ""
|
||||
|
||||
#: ../../README_.rst:54
|
||||
msgid ""
|
||||
"Traditionally, light-weight operating systems specialized for HPC "
|
||||
"followed two approaches to tackle scalable execution of large-scale "
|
||||
"applications. In the full weight kernel (FWK) approach, a full Linux "
|
||||
"environment is taken as the basis, and features that inhibit attaining "
|
||||
"HPC scalability are removed, i.e., making it light-weight. The pure "
|
||||
"light-weight kernel (LWK) approach, on the other hand, starts from "
|
||||
"scratch and effort is undertaken to add sufficient functionality so that "
|
||||
"it provides a familiar API, typically something close to that of a "
|
||||
"general purpose OS, while at the same time it retains the desired "
|
||||
"scalability and reliability attributes. Neither of these approaches "
|
||||
"yields a fully Linux compatible environment."
|
||||
msgstr ""
|
||||
|
||||
#: ../../README_.rst:67
|
||||
msgid "The Multi-kernel Approach"
|
||||
msgstr ""
|
||||
|
||||
#: ../../README_.rst:69
|
||||
msgid ""
|
||||
"A hybrid approach recognized recently by the system software community is"
|
||||
" to run Linux simultaneously with a lightweight kernel on compute nodes "
|
||||
"and multiple research projects are now pursuing this direction. The basic"
|
||||
" idea is that simulations run on an HPC tailored lightweight kernel, "
|
||||
"ensuring the necessary isolation for noiseless execution of parallel "
|
||||
"applications, but Linux is leveraged so that the full POSIX API is "
|
||||
"supported. Additionally, the small code base of the LWK can also "
|
||||
"facilitate rapid prototyping for new, exotic hardware features. "
|
||||
"Nevertheless, the questions of how to share node resources between the "
|
||||
"two types of kernels, where do device drivers execute, how exactly do the"
|
||||
" two kernels interact with each other and to what extent are they "
|
||||
"integrated, remain subjects of ongoing debate."
|
||||
msgstr ""
|
||||
|
||||
#: ../../README_.rst:83
|
||||
msgid "Architectural Overview"
|
||||
msgstr ""
|
||||
|
||||
#: ../../README_.rst:85
|
||||
msgid ""
|
||||
"At the heart of the stack is a low-level software infrastructure called "
|
||||
"Interface for Heterogeneous Kernels (IHK). IHK is a general framework "
|
||||
"that provides capabilities for partitioning resources in a many-core "
|
||||
"environment (e.g.,CPU cores and physical memory) and it enables "
|
||||
"management of lightweight kernels. IHK can allocate and release host "
|
||||
"resources dynamically and no reboot of the host machine is required when "
|
||||
"altering configuration. IHK also provides a low-level inter-kernel "
|
||||
"messaging infrastructure, called the Inter-Kernel Communication (IKC) "
|
||||
"layer. An architectural overview of the main system components is shown "
|
||||
"below."
|
||||
msgstr ""
|
||||
|
||||
#: ../../README_.rst:99
|
||||
msgid "arch"
|
||||
msgstr ""
|
||||
|
||||
#: ../../README_.rst:101
|
||||
msgid ""
|
||||
"McKernel is a lightweight kernel written from scratch. It is designed for"
|
||||
" HPC and is booted from IHK. McKernel retains a binary compatible ABI "
|
||||
"with Linux, however, it implements only a small set of performance "
|
||||
"sensitive system calls and the rest are offloaded to Linux. Specifically,"
|
||||
" McKernel has its own memory management, it supports processes and multi-"
|
||||
"threading with a simple round-robin cooperative (tick-less) scheduler, "
|
||||
"and it implements signaling. It also allows inter-process memory mappings"
|
||||
" and it provides interfaces to hardware performance counters."
|
||||
msgstr ""
|
||||
|
||||
#: ../../README_.rst:112
|
||||
msgid "Functionality"
|
||||
msgstr ""
|
||||
|
||||
#: ../../README_.rst:114
|
||||
msgid ""
|
||||
"An overview of some of the principal functionalities of the IHK/McKernel "
|
||||
"stack is provided below."
|
||||
msgstr ""
|
||||
|
||||
#: ../../README_.rst:118
|
||||
msgid "System Call Offloading"
|
||||
msgstr ""
|
||||
|
||||
#: ../../README_.rst:120
|
||||
msgid ""
|
||||
"System call forwarding in McKernel is implemented as follows. When an "
|
||||
"offloaded system call occurs, McKernel marshals the system call number "
|
||||
"along with its arguments and sends a message to Linux via a dedicated IKC"
|
||||
" channel. The corresponding proxy process running on Linux is by default "
|
||||
"waiting for system call requests through an ioctl() call into IHK’s "
|
||||
"system call delegator kernel module. The delegator kernel module’s IKC "
|
||||
"interrupt handler wakes up the proxy process, which returns to userspace "
|
||||
"and simply invokes the requested system call. Once it obtains the return "
|
||||
"value, it instructs the delegator module to send the result back to "
|
||||
"McKernel, which subsequently passes the value to user-space."
|
||||
msgstr ""
|
||||
|
||||
#: ../../README_.rst:132
|
||||
msgid "Unified Address Space"
|
||||
msgstr ""
|
||||
|
||||
#: ../../README_.rst:134
|
||||
msgid ""
|
||||
"The unified address space model in IHK/McKernel ensures that offloaded "
|
||||
"system calls can seamlessly resolve arguments even in case of pointers. "
|
||||
"This mechanism is depicted below and is implemented as follows."
|
||||
msgstr ""
|
||||
|
||||
#: ../../README_.rst:141
|
||||
msgid "unified_ap"
|
||||
msgstr ""
|
||||
|
||||
#: ../../README_.rst:143
|
||||
msgid ""
|
||||
"First, the proxy process is compiled as a position independent binary, "
|
||||
"which enables us to map the code and data segments specific to the proxy "
|
||||
"process to an address range which is explicitly excluded from McKernel’s "
|
||||
"user space. The grey box on the right side of the figure demonstrates the"
|
||||
" excluded region. Second, the entire valid virtual address range of "
|
||||
"McKernel’s application user-space is covered by a special mapping in the "
|
||||
"proxy process for which we use a pseudo file mapping in Linux. This "
|
||||
"mapping is indicated by the blue box on the left side of the figure."
|
||||
msgstr ""
|
||||
|
||||
#: ../../README_.rst:153
|
||||
msgid "Installation"
|
||||
msgstr ""
|
||||
|
||||
#: ../../README_.rst:155
|
||||
msgid ""
|
||||
"For a smooth experience, we recommend the following combination of OS "
|
||||
"distributions and platforms:"
|
||||
msgstr ""
|
||||
|
||||
#: ../../README_.rst:158
|
||||
msgid "CentOS 7.3+ running on Intel Xeon, Xeon Phi, Fujitsu A64FX"
|
||||
msgstr ""
|
||||
|
||||
#: ../../README_.rst:161
|
||||
msgid "1. Change SELinux settings"
|
||||
msgstr ""
|
||||
|
||||
#: ../../README_.rst:163
|
||||
msgid "Log in as the root and disable SELinux:"
|
||||
msgstr ""
|
||||
|
||||
#: ../../README_.rst:169
|
||||
msgid "Change the file to SELINUX=disabled"
|
||||
msgstr ""
|
||||
|
||||
#: ../../README_.rst:172
|
||||
msgid "2. Reboot the host machine"
|
||||
msgstr ""
|
||||
|
||||
#: ../../README_.rst:179
|
||||
msgid "3. Prepare packages, kernel symbol table file"
|
||||
msgstr ""
|
||||
|
||||
#: ../../README_.rst:181
|
||||
msgid "You will need the following packages installed:"
|
||||
msgstr ""
|
||||
|
||||
#: ../../README_.rst:187
|
||||
msgid ""
|
||||
"Note that to install libdwarf-devel to RHEL-8.2, you need to enable the "
|
||||
"CodeReady Linux Builder (CLB) repository and the EPEL repository with the"
|
||||
" following commands:"
|
||||
msgstr ""
|
||||
|
||||
#: ../../README_.rst:195
|
||||
msgid "Grant read permission to the System.map file of your kernel version:"
|
||||
msgstr ""
|
||||
|
||||
#: ../../README_.rst:202
|
||||
msgid "4. Obtain sources and compile the kernel"
|
||||
msgstr ""
|
||||
|
||||
#: ../../README_.rst:204
|
||||
msgid "Clone the source code:"
|
||||
msgstr ""
|
||||
|
||||
#: ../../README_.rst:212
|
||||
msgid "(Optional) Checkout to the specific branch or version:"
|
||||
msgstr ""
|
||||
|
||||
#: ../../README_.rst:220
|
||||
msgid ""
|
||||
"Foe example, if you want to try the development branch, use “development”"
|
||||
" as the pathspec. If you want to try the prerelease version 1.7.0-0.2, "
|
||||
"use “1.7.0-0.2”."
|
||||
msgstr ""
|
||||
|
||||
#: ../../README_.rst:225
|
||||
msgid "4.1 Install with cmake"
|
||||
msgstr ""
|
||||
|
||||
#: ../../README_.rst:227
|
||||
msgid "Configure and compile:"
|
||||
msgstr ""
|
||||
|
||||
#: ../../README_.rst:235
|
||||
msgid ""
|
||||
"The IHK kernel modules and McKernel kernel image should be installed "
|
||||
"under the **ihk+mckernel** folder in your home directory."
|
||||
msgstr ""
|
||||
|
||||
#: ../../README_.rst:239
|
||||
msgid "4.2 Install with rpm"
|
||||
msgstr ""
|
||||
|
||||
#: ../../README_.rst:241
|
||||
msgid "Build rpm:"
|
||||
msgstr ""
|
||||
|
||||
#: ../../README_.rst:252
|
||||
msgid ""
|
||||
"The IHK kernel modules and McKernel kernel image are installed under the "
|
||||
"system directory."
|
||||
msgstr ""
|
||||
|
||||
#: ../../README_.rst:256
|
||||
msgid "5. Boot McKernel"
|
||||
msgstr ""
|
||||
|
||||
#: ../../README_.rst:258
|
||||
msgid ""
|
||||
"A boot script called mcreboot.sh is provided under sbin in the install "
|
||||
"folder. To boot on logical CPU 1 with 512MB of memory, use the following "
|
||||
"invocation:"
|
||||
msgstr ""
|
||||
|
||||
#: ../../README_.rst:268
|
||||
msgid ""
|
||||
"You should see something similar like this if you display the McKernel’s "
|
||||
"kernel message log:"
|
||||
msgstr ""
|
||||
|
||||
#: ../../README_.rst:296
|
||||
msgid "6. Run a simple program on McKernel"
|
||||
msgstr ""
|
||||
|
||||
#: ../../README_.rst:298
|
||||
msgid ""
|
||||
"The mcexec command line tool (which is also the Linux proxy process) can "
|
||||
"be used for executing applications on McKernel:"
|
||||
msgstr ""
|
||||
|
||||
#: ../../README_.rst:307
|
||||
msgid "7. Shutdown McKernel"
|
||||
msgstr ""
|
||||
|
||||
#: ../../README_.rst:309
|
||||
msgid ""
|
||||
"Finally, to shutdown McKernel and release CPU/memory resources back to "
|
||||
"Linux use the following command:"
|
||||
msgstr ""
|
||||
|
||||
#: ../../README_.rst:317
|
||||
msgid "8. Advanced: Enable Utility Thread offloading Interface (UTI)"
|
||||
msgstr ""
|
||||
|
||||
#: ../../README_.rst:319
|
||||
msgid ""
|
||||
"UTI enables a runtime such as MPI runtime to spawn utility threads such "
|
||||
"as MPI asynchronous progress threads to Linux cores."
|
||||
msgstr ""
|
||||
|
||||
#: ../../README_.rst:323
|
||||
msgid "8.1 Install capstone"
|
||||
msgstr ""
|
||||
|
||||
#: ../../README_.rst:325
|
||||
msgid "Install EPEL capstone-devel:"
|
||||
msgstr ""
|
||||
|
||||
#: ../../README_.rst:333
|
||||
msgid "8.2 Install syscall_intercept"
|
||||
msgstr ""
|
||||
|
||||
#: ../../README_.rst:342
|
||||
msgid "8.3 Install UTI for McKernel"
|
||||
msgstr ""
|
||||
|
||||
#: ../../README_.rst:344
|
||||
msgid "Install:"
|
||||
msgstr ""
|
||||
|
||||
#: ../../README_.rst:354
|
||||
msgid "8.4 Install McKernel"
|
||||
msgstr ""
|
||||
|
||||
#: ../../README_.rst:361
|
||||
msgid "8.5 Run executable"
|
||||
msgstr ""
|
||||
|
||||
#: ../../README_.rst:368
|
||||
msgid "8.6 Install UTI for Linux for performance comparison"
|
||||
msgstr ""
|
||||
|
||||
#: ../../README_.rst:370
|
||||
msgid "Install by make:"
|
||||
msgstr ""
|
||||
|
||||
#: ../../README_.rst:379
|
||||
msgid "Install by rpm:"
|
||||
msgstr ""
|
||||
|
||||
#: ../../README_.rst:391
|
||||
msgid "The Team"
|
||||
msgstr ""
|
||||
|
||||
#: ../../README_.rst:393
|
||||
msgid ""
|
||||
"The McKernel project was started at The University of Tokyo and currently"
|
||||
" it is mainly developed at RIKEN. Some of our collaborators include:"
|
||||
msgstr ""
|
||||
|
||||
#: ../../README_.rst:397
|
||||
msgid "Hitachi"
|
||||
msgstr ""
|
||||
|
||||
#: ../../README_.rst:398
|
||||
msgid "Fujitsu"
|
||||
msgstr ""
|
||||
|
||||
#: ../../README_.rst:399
|
||||
msgid "CEA (France)"
|
||||
msgstr ""
|
||||
|
||||
#: ../../README_.rst:400
|
||||
msgid "NEC"
|
||||
msgstr ""
|
||||
|
||||
#: ../../README_.rst:403
|
||||
msgid "License"
|
||||
msgstr ""
|
||||
|
||||
#: ../../README_.rst:405
|
||||
msgid "McKernel is GPL licensed, as found in the LICENSE file."
|
||||
msgstr ""
|
||||
|
||||
#: ../../README_.rst:408
|
||||
msgid "Contact"
|
||||
msgstr ""
|
||||
|
||||
#: ../../README_.rst:410
|
||||
msgid ""
|
||||
"Please give your feedback to us via one of the following mailing lists. "
|
||||
"Subscription via `www.pccluster.org "
|
||||
"<http://www.pccluster.org/mailman/listinfo/mckernel-users>`__ is needed."
|
||||
msgstr ""
|
||||
|
||||
#: ../../README_.rst:415
|
||||
msgid "English: mckernel-users@pccluster.org"
|
||||
msgstr ""
|
||||
|
||||
#: ../../README_.rst:416
|
||||
msgid "Japanese: mckernel-users-jp@pccluster.org"
|
||||
msgstr ""
|
||||
|
||||
101
docs/locales/ja/LC_MESSAGES/archtecture.po
Normal file
101
docs/locales/ja/LC_MESSAGES/archtecture.po
Normal file
@ -0,0 +1,101 @@
|
||||
# SOME DESCRIPTIVE TITLE.
|
||||
# Copyright (C) 2020, Masamichi Takagi, Balazs Gerofi, Yutaka Ishikawa
|
||||
# This file is distributed under the same license as the IHK/McKernel
|
||||
# package.
|
||||
# FIRST AUTHOR <EMAIL@ADDRESS>, 2020.
|
||||
#
|
||||
#, fuzzy
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: IHK/McKernel \n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2020-08-04 16:40+0900\n"
|
||||
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
||||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
||||
"Language-Team: LANGUAGE <LL@li.org>\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=utf-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Generated-By: Babel 2.7.0\n"
|
||||
|
||||
#: ../../archtecture.rst:2
|
||||
msgid "Architectural Overview"
|
||||
msgstr ""
|
||||
|
||||
#: ../../archtecture.rst:4
|
||||
msgid ""
|
||||
"At the heart of the stack is a low-level software infrastructure called "
|
||||
"Interface for Heterogeneous Kernels (IHK). IHK is a general framework "
|
||||
"that provides capabilities for partitioning resources in a many-core "
|
||||
"environment (e.g.,CPU cores and physical memory) and it enables "
|
||||
"management of lightweight kernels. IHK can allocate and release host "
|
||||
"resources dynamically and no reboot of the host machine is required when "
|
||||
"altering configuration. IHK also provides a low-level inter-kernel "
|
||||
"messaging infrastructure, called the Inter-Kernel Communication (IKC) "
|
||||
"layer. An architectural overview of the main system components is shown "
|
||||
"below."
|
||||
msgstr ""
|
||||
|
||||
#: ../../archtecture.rst:18
|
||||
msgid ""
|
||||
"McKernel is a lightweight kernel written from scratch. It is designed for"
|
||||
" HPC and is booted from IHK. McKernel retains a binary compatible ABI "
|
||||
"with Linux, however, it implements only a small set of performance "
|
||||
"sensitive system calls and the rest are offloaded to Linux. Specifically,"
|
||||
" McKernel has its own memory management, it supports processes and multi-"
|
||||
"threading with a simple round-robin cooperative (tick-less) scheduler, "
|
||||
"and it implements signaling. It also allows inter-process memory mappings"
|
||||
" and it provides interfaces to hardware performance counters."
|
||||
msgstr ""
|
||||
|
||||
#: ../../archtecture.rst:29
|
||||
msgid "Functionality"
|
||||
msgstr ""
|
||||
|
||||
#: ../../archtecture.rst:31
|
||||
msgid ""
|
||||
"An overview of some of the principal functionalities of the IHK/McKernel "
|
||||
"stack is provided below."
|
||||
msgstr ""
|
||||
|
||||
#: ../../archtecture.rst:35
|
||||
msgid "System Call Offloading"
|
||||
msgstr ""
|
||||
|
||||
#: ../../archtecture.rst:37
|
||||
msgid ""
|
||||
"System call forwarding in McKernel is implemented as follows. When an "
|
||||
"offloaded system call occurs, McKernel marshals the system call number "
|
||||
"along with its arguments and sends a message to Linux via a dedicated IKC"
|
||||
" channel. The corresponding proxy process running on Linux is by default "
|
||||
"waiting for system call requests through an ioctl() call into IHK’s "
|
||||
"system call delegator kernel module. The delegator kernel module’s IKC "
|
||||
"interrupt handler wakes up the proxy process, which returns to userspace "
|
||||
"and simply invokes the requested system call. Once it obtains the return "
|
||||
"value, it instructs the delegator module to send the result back to "
|
||||
"McKernel, which subsequently passes the value to user-space."
|
||||
msgstr ""
|
||||
|
||||
#: ../../archtecture.rst:49
|
||||
msgid "Unified Address Space"
|
||||
msgstr ""
|
||||
|
||||
#: ../../archtecture.rst:51
|
||||
msgid ""
|
||||
"The unified address space model in IHK/McKernel ensures that offloaded "
|
||||
"system calls can seamlessly resolve arguments even in case of pointers. "
|
||||
"This mechanism is depicted below and is implemented as follows."
|
||||
msgstr ""
|
||||
|
||||
#: ../../archtecture.rst:58
|
||||
msgid ""
|
||||
"First, the proxy process is compiled as a position independent binary, "
|
||||
"which enables us to map the code and data segments specific to the proxy "
|
||||
"process to an address range which is explicitly excluded from McKernel’s "
|
||||
"user space. The grey box on the right side of the figure demonstrates the"
|
||||
" excluded region. Second, the entire valid virtual address range of "
|
||||
"McKernel’s application user-space is covered by a special mapping in the "
|
||||
"proxy process for which we use a pseudo file mapping in Linux. This "
|
||||
"mapping is indicated by the blue box on the left side of the figure."
|
||||
msgstr ""
|
||||
|
||||
79
docs/locales/ja/LC_MESSAGES/background.po
Normal file
79
docs/locales/ja/LC_MESSAGES/background.po
Normal file
@ -0,0 +1,79 @@
|
||||
# SOME DESCRIPTIVE TITLE.
|
||||
# Copyright (C) 2020, Masamichi Takagi, Balazs Gerofi, Yutaka Ishikawa
|
||||
# This file is distributed under the same license as the IHK/McKernel
|
||||
# package.
|
||||
# FIRST AUTHOR <EMAIL@ADDRESS>, 2020.
|
||||
#
|
||||
#, fuzzy
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: IHK/McKernel \n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2020-08-04 16:40+0900\n"
|
||||
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
||||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
||||
"Language-Team: LANGUAGE <LL@li.org>\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=utf-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Generated-By: Babel 2.7.0\n"
|
||||
|
||||
#: ../../background.rst:2
|
||||
msgid "Background and Motivation"
|
||||
msgstr ""
|
||||
|
||||
#: ../../background.rst:4
|
||||
msgid ""
|
||||
"With the growing complexity of high-end supercomputers, the current "
|
||||
"system software stack faces significant challenges as we move forward to "
|
||||
"exascale and beyond. The necessity to deal with extreme degree of "
|
||||
"parallelism, heterogeneous architectures, multiple levels of memory "
|
||||
"hierarchy, power constraints, etc., advocates operating systems that can "
|
||||
"rapidly adapt to new hardware requirements, and that can support novel "
|
||||
"programming paradigms and runtime systems. On the other hand, a new class"
|
||||
" of more dynamic and complex applications are also on the horizon, with "
|
||||
"an increasing demand for application constructs such as in-situ analysis,"
|
||||
" workflows, elaborate monitoring and performance tools. This complexity "
|
||||
"relies not only on the rich features of POSIX, but also on the Linux APIs"
|
||||
" (such as the */proc*, */sys* filesystems, etc.) in particular."
|
||||
msgstr ""
|
||||
|
||||
#: ../../background.rst:19
|
||||
msgid "Two Traditional HPC OS Approaches"
|
||||
msgstr ""
|
||||
|
||||
#: ../../background.rst:21
|
||||
msgid ""
|
||||
"Traditionally, light-weight operating systems specialized for HPC "
|
||||
"followed two approaches to tackle scalable execution of large-scale "
|
||||
"applications. In the full weight kernel (FWK) approach, a full Linux "
|
||||
"environment is taken as the basis, and features that inhibit attaining "
|
||||
"HPC scalability are removed, i.e., making it light-weight. The pure "
|
||||
"light-weight kernel (LWK) approach, on the other hand, starts from "
|
||||
"scratch and effort is undertaken to add sufficient functionality so that "
|
||||
"it provides a familiar API, typically something close to that of a "
|
||||
"general purpose OS, while at the same time it retains the desired "
|
||||
"scalability and reliability attributes. Neither of these approaches "
|
||||
"yields a fully Linux compatible environment."
|
||||
msgstr ""
|
||||
|
||||
#: ../../background.rst:34
|
||||
msgid "The Multi-kernel Approach"
|
||||
msgstr ""
|
||||
|
||||
#: ../../background.rst:36
|
||||
msgid ""
|
||||
"A hybrid approach recognized recently by the system software community is"
|
||||
" to run Linux simultaneously with a lightweight kernel on compute nodes "
|
||||
"and multiple research projects are now pursuing this direction. The basic"
|
||||
" idea is that simulations run on an HPC tailored lightweight kernel, "
|
||||
"ensuring the necessary isolation for noiseless execution of parallel "
|
||||
"applications, but Linux is leveraged so that the full POSIX API is "
|
||||
"supported. Additionally, the small code base of the LWK can also "
|
||||
"facilitate rapid prototyping for new, exotic hardware features. "
|
||||
"Nevertheless, the questions of how to share node resources between the "
|
||||
"two types of kernels, where do device drivers execute, how exactly do the"
|
||||
" two kernels interact with each other and to what extent are they "
|
||||
"integrated, remain subjects of ongoing debate."
|
||||
msgstr ""
|
||||
|
||||
57
docs/locales/ja/LC_MESSAGES/boot_run_shutdown.po
Normal file
57
docs/locales/ja/LC_MESSAGES/boot_run_shutdown.po
Normal file
@ -0,0 +1,57 @@
|
||||
# SOME DESCRIPTIVE TITLE.
|
||||
# Copyright (C) 2020, Masamichi Takagi, Balazs Gerofi, Yutaka Ishikawa
|
||||
# This file is distributed under the same license as the IHK/McKernel
|
||||
# package.
|
||||
# FIRST AUTHOR <EMAIL@ADDRESS>, 2020.
|
||||
#
|
||||
#, fuzzy
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: IHK/McKernel \n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2020-08-04 16:40+0900\n"
|
||||
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
||||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
||||
"Language-Team: LANGUAGE <LL@li.org>\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=utf-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Generated-By: Babel 2.7.0\n"
|
||||
|
||||
#: ../../boot_run_shutdown.rst:2
|
||||
msgid "Boot McKernel"
|
||||
msgstr ""
|
||||
|
||||
#: ../../boot_run_shutdown.rst:4
|
||||
msgid ""
|
||||
"A boot script called ``mcreboot.sh`` is provided under ``sbin`` in the "
|
||||
"install folder. To boot on logical CPU 1 with 512MB of memory, use the "
|
||||
"following invocation:"
|
||||
msgstr ""
|
||||
|
||||
#: ../../boot_run_shutdown.rst:14
|
||||
msgid ""
|
||||
"You should see something similar like this if you display the McKernel’s "
|
||||
"kernel message log:"
|
||||
msgstr ""
|
||||
|
||||
#: ../../boot_run_shutdown.rst:42
|
||||
msgid "Run a simple program on McKernel"
|
||||
msgstr ""
|
||||
|
||||
#: ../../boot_run_shutdown.rst:44
|
||||
msgid ""
|
||||
"The mcexec command line tool (which is also the Linux proxy process) can "
|
||||
"be used for executing applications on McKernel:"
|
||||
msgstr ""
|
||||
|
||||
#: ../../boot_run_shutdown.rst:53
|
||||
msgid "Shutdown McKernel"
|
||||
msgstr ""
|
||||
|
||||
#: ../../boot_run_shutdown.rst:55
|
||||
msgid ""
|
||||
"Finally, to shutdown McKernel and release CPU/memory resources back to "
|
||||
"Linux use the following command:"
|
||||
msgstr ""
|
||||
|
||||
39
docs/locales/ja/LC_MESSAGES/contact.po
Normal file
39
docs/locales/ja/LC_MESSAGES/contact.po
Normal file
@ -0,0 +1,39 @@
|
||||
# SOME DESCRIPTIVE TITLE.
|
||||
# Copyright (C) 2020, Masamichi Takagi, Balazs Gerofi, Yutaka Ishikawa
|
||||
# This file is distributed under the same license as the IHK/McKernel
|
||||
# package.
|
||||
# FIRST AUTHOR <EMAIL@ADDRESS>, 2020.
|
||||
#
|
||||
#, fuzzy
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: IHK/McKernel \n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2020-08-04 16:40+0900\n"
|
||||
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
||||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
||||
"Language-Team: LANGUAGE <LL@li.org>\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=utf-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Generated-By: Babel 2.7.0\n"
|
||||
|
||||
#: ../../contact.rst:2
|
||||
msgid "Contact"
|
||||
msgstr ""
|
||||
|
||||
#: ../../contact.rst:4
|
||||
msgid ""
|
||||
"Please give your feedback to us via one of the following mailing lists. "
|
||||
"Subscription via `www.pccluster.org "
|
||||
"<http://www.pccluster.org/mailman/listinfo/mckernel-users>`__ is needed."
|
||||
msgstr ""
|
||||
|
||||
#: ../../contact.rst:9
|
||||
msgid "English: mckernel-users@pccluster.org"
|
||||
msgstr ""
|
||||
|
||||
#: ../../contact.rst:10
|
||||
msgid "Japanese: mckernel-users-jp@pccluster.org"
|
||||
msgstr ""
|
||||
|
||||
59
docs/locales/ja/LC_MESSAGES/cover.po
Normal file
59
docs/locales/ja/LC_MESSAGES/cover.po
Normal file
@ -0,0 +1,59 @@
|
||||
# SOME DESCRIPTIVE TITLE.
|
||||
# Copyright (C) 2020, Masamichi Takagi, Balazs Gerofi, Yutaka Ishikawa
|
||||
# This file is distributed under the same license as the IHK/McKernel
|
||||
# package.
|
||||
# FIRST AUTHOR <EMAIL@ADDRESS>, 2020.
|
||||
#
|
||||
#, fuzzy
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: IHK/McKernel \n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2020-08-04 16:40+0900\n"
|
||||
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
||||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
||||
"Language-Team: LANGUAGE <LL@li.org>\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=utf-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Generated-By: Babel 2.7.0\n"
|
||||
|
||||
#: ../../summary.rst:1
|
||||
msgid ""
|
||||
"IHK/McKernel is a light-weight multi-kernel operating system designed for"
|
||||
" high-end supercomputing. It runs Linux and McKernel, a light-weight "
|
||||
"kernel (LWK), side-by-side inside compute nodes and aims at the "
|
||||
"following:"
|
||||
msgstr ""
|
||||
|
||||
#: ../../summary.rst:6
|
||||
msgid ""
|
||||
"Provide scalable and consistent execution of large-scale parallel "
|
||||
"scientific applications, but at the same time maintain the ability to "
|
||||
"rapidly adapt to new hardware features and emerging programming models"
|
||||
msgstr ""
|
||||
|
||||
#: ../../summary.rst:10
|
||||
msgid ""
|
||||
"Provide efficient memory and device management so that resource "
|
||||
"contention and data movement are minimized at the system level"
|
||||
msgstr ""
|
||||
|
||||
#: ../../summary.rst:12
|
||||
msgid ""
|
||||
"Eliminate OS noise by isolating OS services in Linux and provide jitter "
|
||||
"free execution on the LWK"
|
||||
msgstr ""
|
||||
|
||||
#: ../../summary.rst:14
|
||||
msgid ""
|
||||
"Support the full POSIX/Linux APIs by selectively offloading (slow-path) "
|
||||
"system calls to Linux"
|
||||
msgstr ""
|
||||
|
||||
#: ../../cover.rst:5
|
||||
msgid ""
|
||||
"See `Quick Guide -- Installation <quick.html#installation>`__ for jump "
|
||||
"start."
|
||||
msgstr ""
|
||||
|
||||
28
docs/locales/ja/LC_MESSAGES/doc.po
Normal file
28
docs/locales/ja/LC_MESSAGES/doc.po
Normal file
@ -0,0 +1,28 @@
|
||||
# SOME DESCRIPTIVE TITLE.
|
||||
# Copyright (C) 2020, Masamichi Takagi, Balazs Gerofi, Yutaka Ishikawa
|
||||
# This file is distributed under the same license as the IHK/McKernel
|
||||
# package.
|
||||
# FIRST AUTHOR <EMAIL@ADDRESS>, 2020.
|
||||
#
|
||||
#, fuzzy
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: IHK/McKernel \n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2020-08-04 16:40+0900\n"
|
||||
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
||||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
||||
"Language-Team: LANGUAGE <LL@li.org>\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=utf-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Generated-By: Babel 2.7.0\n"
|
||||
|
||||
#: ../../doc.rst:2
|
||||
msgid "Documentation"
|
||||
msgstr ""
|
||||
|
||||
#: ../../doc.rst:4
|
||||
msgid "Documentation is available `here <https://ihkmckernel.readthedocs.io>`__."
|
||||
msgstr ""
|
||||
|
||||
40
docs/locales/ja/LC_MESSAGES/ihk_developers.po
Normal file
40
docs/locales/ja/LC_MESSAGES/ihk_developers.po
Normal file
@ -0,0 +1,40 @@
|
||||
# SOME DESCRIPTIVE TITLE.
|
||||
# Copyright (C) 2020, Masamichi Takagi, Balazs Gerofi, Yutaka Ishikawa
|
||||
# This file is distributed under the same license as the IHK/McKernel
|
||||
# package.
|
||||
# FIRST AUTHOR <EMAIL@ADDRESS>, 2020.
|
||||
#
|
||||
#, fuzzy
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: IHK/McKernel \n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2020-08-04 16:40+0900\n"
|
||||
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
||||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
||||
"Language-Team: LANGUAGE <LL@li.org>\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=utf-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Generated-By: Babel 2.7.0\n"
|
||||
|
||||
#: ../../ihk_developers.rst:6
|
||||
msgid "External Specs"
|
||||
msgstr ""
|
||||
|
||||
#: ../../ihk_developers.rst:9
|
||||
msgid "Overview"
|
||||
msgstr ""
|
||||
|
||||
#: ../../ihk_developers.rst:12
|
||||
msgid "Function Specs"
|
||||
msgstr ""
|
||||
|
||||
#: ../../ihk_developers.rst:15
|
||||
msgid "Command / Daemon Specs"
|
||||
msgstr ""
|
||||
|
||||
#: ../../ihk_developers.rst:18
|
||||
msgid "Booting LWK"
|
||||
msgstr ""
|
||||
|
||||
95
docs/locales/ja/LC_MESSAGES/index.po
Normal file
95
docs/locales/ja/LC_MESSAGES/index.po
Normal file
@ -0,0 +1,95 @@
|
||||
# SOME DESCRIPTIVE TITLE.
|
||||
# Copyright (C) 2020, Masamichi Takagi, Balazs Gerofi, Yutaka Ishikawa
|
||||
# This file is distributed under the same license as the IHK/McKernel
|
||||
# package.
|
||||
# FIRST AUTHOR <EMAIL@ADDRESS>, 2020.
|
||||
#
|
||||
#, fuzzy
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: IHK/McKernel \n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2020-08-07 10:00+0900\n"
|
||||
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
||||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
||||
"Language-Team: LANGUAGE <LL@li.org>\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=utf-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Generated-By: Babel 2.7.0\n"
|
||||
|
||||
#: ../../index.rst:12
|
||||
msgid "Quick Guide"
|
||||
msgstr "クイックガイド"
|
||||
|
||||
#: ../../index.rst:18
|
||||
msgid "Users' Guide"
|
||||
msgstr "ユーザガイド"
|
||||
|
||||
#: ../../index.rst:24
|
||||
msgid "Operators' Guide"
|
||||
msgstr "運用ガイド"
|
||||
|
||||
#: ../../index.rst:30
|
||||
msgid "IHK Developers' Guide"
|
||||
msgstr ""
|
||||
|
||||
#: ../../index.rst:36
|
||||
msgid "McKernel Developers' Guide"
|
||||
msgstr ""
|
||||
|
||||
#: ../../index.rst:42
|
||||
msgid "IHK Specifications"
|
||||
msgstr ""
|
||||
|
||||
#: ../../index.rst:48
|
||||
msgid "McKernel Specifications"
|
||||
msgstr ""
|
||||
|
||||
#: ../../index.rst:54
|
||||
msgid "What's New"
|
||||
msgstr ""
|
||||
|
||||
#: ../../index.rst:8
|
||||
msgid "IHK/McKernel"
|
||||
msgstr ""
|
||||
|
||||
#: ../../summary.rst:1
|
||||
msgid ""
|
||||
"IHK/McKernel is a light-weight multi-kernel operating system designed for"
|
||||
" high-end supercomputing. It runs Linux and McKernel, a light-weight "
|
||||
"kernel (LWK), side-by-side inside compute nodes and aims at the "
|
||||
"following:"
|
||||
msgstr ""
|
||||
|
||||
#: ../../summary.rst:6
|
||||
msgid ""
|
||||
"Provide scalable and consistent execution of large-scale parallel "
|
||||
"scientific applications, but at the same time maintain the ability to "
|
||||
"rapidly adapt to new hardware features and emerging programming models"
|
||||
msgstr ""
|
||||
|
||||
#: ../../summary.rst:10
|
||||
msgid ""
|
||||
"Provide efficient memory and device management so that resource "
|
||||
"contention and data movement are minimized at the system level"
|
||||
msgstr ""
|
||||
|
||||
#: ../../summary.rst:12
|
||||
msgid ""
|
||||
"Eliminate OS noise by isolating OS services in Linux and provide jitter "
|
||||
"free execution on the LWK"
|
||||
msgstr ""
|
||||
|
||||
#: ../../summary.rst:14
|
||||
msgid ""
|
||||
"Support the full POSIX/Linux APIs by selectively offloading (slow-path) "
|
||||
"system calls to Linux"
|
||||
msgstr ""
|
||||
|
||||
#: ../../cover.rst:5
|
||||
msgid ""
|
||||
"See `Quick Guide -- Installation <quick.html#installation>`__ for jump "
|
||||
"start."
|
||||
msgstr ""
|
||||
|
||||
191
docs/locales/ja/LC_MESSAGES/install.po
Normal file
191
docs/locales/ja/LC_MESSAGES/install.po
Normal file
@ -0,0 +1,191 @@
|
||||
# SOME DESCRIPTIVE TITLE.
|
||||
# Copyright (C) 2020, Masamichi Takagi, Balazs Gerofi, Yutaka Ishikawa
|
||||
# This file is distributed under the same license as the IHK/McKernel
|
||||
# package.
|
||||
# FIRST AUTHOR <EMAIL@ADDRESS>, 2020.
|
||||
#
|
||||
#, fuzzy
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: IHK/McKernel \n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2020-08-04 16:40+0900\n"
|
||||
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
||||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
||||
"Language-Team: LANGUAGE <LL@li.org>\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=utf-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Generated-By: Babel 2.7.0\n"
|
||||
|
||||
#: ../../install.rst:4
|
||||
msgid "Installation"
|
||||
msgstr "インストール"
|
||||
|
||||
#: ../../install.rst:6
|
||||
msgid "The following OS distributions and platforms are recommended:"
|
||||
msgstr "推奨OSディストリビューションとプロセッサは以下の通り。"
|
||||
|
||||
#: ../../install.rst:8
|
||||
msgid "OS distribution"
|
||||
msgstr ""
|
||||
|
||||
#: ../../install.rst:10
|
||||
msgid "CentOS 7.3 or later"
|
||||
msgstr ""
|
||||
|
||||
#: ../../install.rst:11
|
||||
msgid "RHEL 7.3 or later"
|
||||
msgstr ""
|
||||
|
||||
#: ../../install.rst:13
|
||||
msgid "Platform"
|
||||
msgstr ""
|
||||
|
||||
#: ../../install.rst:15
|
||||
msgid "Intel Xeon"
|
||||
msgstr ""
|
||||
|
||||
#: ../../install.rst:16
|
||||
msgid "Intel Xeon Phi"
|
||||
msgstr ""
|
||||
|
||||
#: ../../install.rst:17
|
||||
msgid "Fujitsu A64FX"
|
||||
msgstr ""
|
||||
|
||||
#: ../../install.rst:20
|
||||
msgid "Prepare files for building McKernel"
|
||||
msgstr ""
|
||||
|
||||
#: ../../install.rst:22
|
||||
msgid ""
|
||||
"Grant read permission to the System.map file of your kernel version on "
|
||||
"the build machine:"
|
||||
msgstr ""
|
||||
|
||||
#: ../../install.rst:28
|
||||
msgid "Install the following packages to the build machine:"
|
||||
msgstr ""
|
||||
|
||||
#: ../../install.rst:35 ../../install.rst:179
|
||||
msgid "When having access to repositories"
|
||||
msgstr ""
|
||||
|
||||
#: ../../install.rst:37 ../../install.rst:181
|
||||
msgid "On RHEL 8, enable the CodeReady Linux Builder (CLB) repository:"
|
||||
msgstr ""
|
||||
|
||||
#: ../../install.rst:43 ../../install.rst:187
|
||||
msgid "On CentOS 8, enable the PowerTools repository:"
|
||||
msgstr ""
|
||||
|
||||
#: ../../install.rst:49 ../../install.rst:193
|
||||
msgid "Install with yum:"
|
||||
msgstr ""
|
||||
|
||||
#: ../../install.rst:56 ../../install.rst:200
|
||||
msgid "When not having access to repositories"
|
||||
msgstr ""
|
||||
|
||||
#: ../../install.rst:58
|
||||
msgid ""
|
||||
"Ask the system administrator to install them. Note that ``libdwarf-"
|
||||
"devel`` is in the CodeReady Linux Builder repository on RHEL 8 or in the "
|
||||
"PowerTools repository on CentOS 8."
|
||||
msgstr ""
|
||||
|
||||
#: ../../install.rst:61
|
||||
msgid "Clone, compile, install"
|
||||
msgstr ""
|
||||
|
||||
#: ../../install.rst:63
|
||||
msgid "Clone the source code:"
|
||||
msgstr ""
|
||||
|
||||
#: ../../install.rst:71
|
||||
msgid "(Optional) Checkout to the specific branch or version:"
|
||||
msgstr ""
|
||||
|
||||
#: ../../install.rst:79
|
||||
msgid ""
|
||||
"Foe example, if you want to try the development branch, use “development”"
|
||||
" as the pathspec. If you want to try the prerelease version 1.7.0-0.2, "
|
||||
"use “1.7.0-0.2”."
|
||||
msgstr ""
|
||||
|
||||
#: ../../install.rst:83
|
||||
msgid "Move to build directory:"
|
||||
msgstr ""
|
||||
|
||||
#: ../../install.rst:89
|
||||
msgid "Run cmake:"
|
||||
msgstr ""
|
||||
|
||||
#: ../../install.rst:92 ../../install.rst:135
|
||||
msgid "When not cross-compiling:"
|
||||
msgstr ""
|
||||
|
||||
#: ../../install.rst:99 ../../install.rst:142
|
||||
msgid "When cross-compiling:"
|
||||
msgstr ""
|
||||
|
||||
#: ../../install.rst:111
|
||||
msgid "Install with cmake"
|
||||
msgstr ""
|
||||
|
||||
#: ../../install.rst:113
|
||||
msgid "Install with make:"
|
||||
msgstr ""
|
||||
|
||||
#: ../../install.rst:119
|
||||
msgid ""
|
||||
"The kernel modules and McKernel kernel image should be installed under "
|
||||
"the **ihk+mckernel** folder in your home directory."
|
||||
msgstr ""
|
||||
|
||||
#: ../../install.rst:123
|
||||
msgid "Install with rpm"
|
||||
msgstr ""
|
||||
|
||||
#: ../../install.rst:125
|
||||
msgid "Create the tarball and the spec file:"
|
||||
msgstr ""
|
||||
|
||||
#: ../../install.rst:132
|
||||
msgid "Create the rpm package:"
|
||||
msgstr ""
|
||||
|
||||
#: ../../install.rst:148
|
||||
msgid "Install the rpm package:"
|
||||
msgstr ""
|
||||
|
||||
#: ../../install.rst:154
|
||||
msgid ""
|
||||
"The kernel modules and McKernel kernel image are installed under the "
|
||||
"standard system directories."
|
||||
msgstr ""
|
||||
|
||||
#: ../../install.rst:158
|
||||
msgid "Prepare files and change settings for installing McKernel"
|
||||
msgstr ""
|
||||
|
||||
#: ../../install.rst:160
|
||||
msgid "Disable SELinux of the compute nodes:"
|
||||
msgstr ""
|
||||
|
||||
#: ../../install.rst:166
|
||||
msgid "Change the file to SELINUX=disabled. And then reboot the compute nodes:"
|
||||
msgstr ""
|
||||
|
||||
#: ../../install.rst:172
|
||||
msgid "Install the following packages to the compute nodes:"
|
||||
msgstr ""
|
||||
|
||||
#: ../../install.rst:202
|
||||
msgid ""
|
||||
"Ask the system administrator to install them. Note that ``libdwarf`` is "
|
||||
"in the CodeReady Linux Builder repository on RHEL 8 or in the PowerTools "
|
||||
"repository on CentOS 8."
|
||||
msgstr ""
|
||||
|
||||
28
docs/locales/ja/LC_MESSAGES/license.po
Normal file
28
docs/locales/ja/LC_MESSAGES/license.po
Normal file
@ -0,0 +1,28 @@
|
||||
# SOME DESCRIPTIVE TITLE.
|
||||
# Copyright (C) 2020, Masamichi Takagi, Balazs Gerofi, Yutaka Ishikawa
|
||||
# This file is distributed under the same license as the IHK/McKernel
|
||||
# package.
|
||||
# FIRST AUTHOR <EMAIL@ADDRESS>, 2020.
|
||||
#
|
||||
#, fuzzy
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: IHK/McKernel \n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2020-08-04 16:40+0900\n"
|
||||
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
||||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
||||
"Language-Team: LANGUAGE <LL@li.org>\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=utf-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Generated-By: Babel 2.7.0\n"
|
||||
|
||||
#: ../../license.rst:2
|
||||
msgid "License"
|
||||
msgstr ""
|
||||
|
||||
#: ../../license.rst:4
|
||||
msgid "McKernel is GPL licensed, as found in the LICENSE file."
|
||||
msgstr ""
|
||||
|
||||
20
docs/locales/ja/LC_MESSAGES/logo.po
Normal file
20
docs/locales/ja/LC_MESSAGES/logo.po
Normal file
@ -0,0 +1,20 @@
|
||||
# SOME DESCRIPTIVE TITLE.
|
||||
# Copyright (C) 2020, Masamichi Takagi, Balazs Gerofi, Yutaka Ishikawa
|
||||
# This file is distributed under the same license as the IHK/McKernel
|
||||
# package.
|
||||
# FIRST AUTHOR <EMAIL@ADDRESS>, 2020.
|
||||
#
|
||||
#, fuzzy
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: IHK/McKernel \n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2020-08-04 16:40+0900\n"
|
||||
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
||||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
||||
"Language-Team: LANGUAGE <LL@li.org>\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=utf-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Generated-By: Babel 2.7.0\n"
|
||||
|
||||
28
docs/locales/ja/LC_MESSAGES/mckernel_developers.po
Normal file
28
docs/locales/ja/LC_MESSAGES/mckernel_developers.po
Normal file
@ -0,0 +1,28 @@
|
||||
# SOME DESCRIPTIVE TITLE.
|
||||
# Copyright (C) 2020, Masamichi Takagi, Balazs Gerofi, Yutaka Ishikawa
|
||||
# This file is distributed under the same license as the IHK/McKernel
|
||||
# package.
|
||||
# FIRST AUTHOR <EMAIL@ADDRESS>, 2020.
|
||||
#
|
||||
#, fuzzy
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: IHK/McKernel \n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2020-08-04 16:40+0900\n"
|
||||
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
||||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
||||
"Language-Team: LANGUAGE <LL@li.org>\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=utf-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Generated-By: Babel 2.7.0\n"
|
||||
|
||||
#: ../../mckernel_developers.rst:6
|
||||
msgid "Interfaces"
|
||||
msgstr ""
|
||||
|
||||
#: ../../mckernel_developers.rst:9
|
||||
msgid "Interface details"
|
||||
msgstr ""
|
||||
|
||||
886
docs/locales/ja/LC_MESSAGES/operators.po
Normal file
886
docs/locales/ja/LC_MESSAGES/operators.po
Normal file
@ -0,0 +1,886 @@
|
||||
# SOME DESCRIPTIVE TITLE.
|
||||
# Copyright (C) 2020, Masamichi Takagi, Balazs Gerofi, Yutaka Ishikawa
|
||||
# This file is distributed under the same license as the IHK/McKernel
|
||||
# package.
|
||||
# FIRST AUTHOR <EMAIL@ADDRESS>, 2020.
|
||||
#
|
||||
#, fuzzy
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: IHK/McKernel \n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2020-08-07 10:26+0900\n"
|
||||
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
||||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
||||
"Language-Team: LANGUAGE <LL@li.org>\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=utf-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Generated-By: Babel 2.7.0\n"
|
||||
|
||||
#: ../../operators.rst:5
|
||||
#, fuzzy
|
||||
msgid "This document will explain how to operate system with McKernel."
|
||||
msgstr "McKernelを用いたシステムを運用するシステム管理者を対象として、運用手順を説明する。"
|
||||
|
||||
#: ../../operators.rst:8
|
||||
msgid "Installation"
|
||||
msgstr "インストール"
|
||||
|
||||
#: ../../operators.rst:10
|
||||
msgid "See `Quick Guide -- Installation <quick.html#installation>`__."
|
||||
msgstr "`クイックガイド ― インストール <quick.html#installation>`__ に記載する。"
|
||||
|
||||
#: ../../uti.rst:2
|
||||
msgid "Advanced: Enable Utility Thread offloading Interface (UTI)"
|
||||
msgstr ""
|
||||
|
||||
#: ../../uti.rst:4
|
||||
msgid ""
|
||||
"UTI enables a runtime such as MPI runtime to spawn utility threads such "
|
||||
"as MPI asynchronous progress threads to Linux cores."
|
||||
msgstr ""
|
||||
|
||||
#: ../../uti.rst:8
|
||||
msgid "Install capstone"
|
||||
msgstr ""
|
||||
|
||||
#: ../../uti.rst:11 ../../uti.rst:22
|
||||
msgid "When compute nodes don't have access to repositories"
|
||||
msgstr ""
|
||||
|
||||
#: ../../uti.rst:13
|
||||
msgid "Install EPEL capstone-devel:"
|
||||
msgstr ""
|
||||
|
||||
#: ../../uti.rst:24
|
||||
msgid ""
|
||||
"Ask the system administrator to install ``capstone-devel``. Note that it "
|
||||
"is in the EPEL repository."
|
||||
msgstr ""
|
||||
|
||||
#: ../../uti.rst:28
|
||||
msgid "Install syscall_intercept"
|
||||
msgstr ""
|
||||
|
||||
#: ../../uti.rst:37
|
||||
msgid "Install UTI for McKernel"
|
||||
msgstr ""
|
||||
|
||||
#: ../../uti.rst:39
|
||||
msgid "Install:"
|
||||
msgstr ""
|
||||
|
||||
#: ../../uti.rst:49
|
||||
msgid "Install McKernel"
|
||||
msgstr ""
|
||||
|
||||
#: ../../uti.rst:51
|
||||
msgid "Add ``-DENABLE_UTI=ON`` option to ``cmake``:"
|
||||
msgstr ""
|
||||
|
||||
#: ../../uti.rst:58
|
||||
msgid "Run programs"
|
||||
msgstr ""
|
||||
|
||||
#: ../../uti.rst:60
|
||||
msgid "Add ``--enable-uti`` option to ``mcexec``:"
|
||||
msgstr ""
|
||||
|
||||
#: ../../uti.rst:67
|
||||
msgid "Install UTI for Linux"
|
||||
msgstr ""
|
||||
|
||||
#: ../../uti.rst:69
|
||||
msgid ""
|
||||
"You should skip this step if it's already installed as with, for example,"
|
||||
" Fujitsu Technical Computing Suite."
|
||||
msgstr ""
|
||||
|
||||
#: ../../uti.rst:72
|
||||
msgid "Install by make"
|
||||
msgstr ""
|
||||
|
||||
#: ../../uti.rst:82
|
||||
msgid "Install by rpm"
|
||||
msgstr ""
|
||||
|
||||
#: ../../operators.rst:15
|
||||
msgid "Boot and Shut-down"
|
||||
msgstr "起動停止"
|
||||
|
||||
#: ../../operators.rst:18
|
||||
msgid "Related files"
|
||||
msgstr "関連ファイル"
|
||||
|
||||
#: ../../operators.rst:20
|
||||
msgid ""
|
||||
"In the followings, the install directory of IHK/McKernel is shown as "
|
||||
"``<install>`` . The kernel modules and their locations are as follows."
|
||||
msgstr "以降、IHK/McKernelのインストールディレクトリを<install>とする。SMPプロセッサ向け、x86_64アーキ向けの関連ファイルの場所は以下の通り。"
|
||||
|
||||
#: ../../operators.rst:24
|
||||
msgid "<install>/kmod/ihk.ko"
|
||||
msgstr ""
|
||||
|
||||
#: ../../operators.rst:24
|
||||
msgid "IHK-master core"
|
||||
msgstr ""
|
||||
|
||||
#: ../../operators.rst:26
|
||||
msgid "|ihk-smp|"
|
||||
msgstr ""
|
||||
|
||||
#: ../../operators.rst:26
|
||||
msgid "IHK-master driver"
|
||||
msgstr ""
|
||||
|
||||
#: ../../operators.rst:29
|
||||
msgid "|mcctrl|"
|
||||
msgstr ""
|
||||
|
||||
#: ../../operators.rst:29
|
||||
msgid "Delegator module"
|
||||
msgstr ""
|
||||
|
||||
#: ../../operators.rst:32
|
||||
msgid "|mckernel.img|"
|
||||
msgstr ""
|
||||
|
||||
#: ../../operators.rst:32
|
||||
msgid "Kernel Image"
|
||||
msgstr "カーネルイメージ"
|
||||
|
||||
#: ../../operators.rst:40
|
||||
msgid "The commands and daemons for operation and their locations are as follows."
|
||||
msgstr "運用向けコマンド・デーモンのファイルの場所は以下の通り。"
|
||||
|
||||
#: ../../operators.rst:43
|
||||
msgid "|mcreboot|"
|
||||
msgstr ""
|
||||
|
||||
#: ../../operators.rst:43
|
||||
msgid "Boot script"
|
||||
msgstr "起動スクリプト"
|
||||
|
||||
#: ../../operators.rst:46
|
||||
msgid "|mcstop|"
|
||||
msgstr ""
|
||||
|
||||
#: ../../operators.rst:46
|
||||
msgid "Shutdown script"
|
||||
msgstr "シャットダウンスクリプト"
|
||||
|
||||
#: ../../operators.rst:49
|
||||
msgid "<install>/bin/mcexec"
|
||||
msgstr ""
|
||||
|
||||
#: ../../operators.rst:49
|
||||
msgid "Process invocation command"
|
||||
msgstr "プロセス起動コマンド"
|
||||
|
||||
#: ../../operators.rst:51
|
||||
msgid "<install>/bin/eclair"
|
||||
msgstr ""
|
||||
|
||||
#: ../../operators.rst:51
|
||||
msgid "Kernel dump analysis tool"
|
||||
msgstr "カーネルダンプ解析ツール"
|
||||
|
||||
#: ../../operators.rst:53
|
||||
msgid "|vmcore2mckdump|"
|
||||
msgstr ""
|
||||
|
||||
#: ../../operators.rst:53
|
||||
msgid "Kernel dump format conversion tool"
|
||||
msgstr "カーネルダンプ形式変換ツール"
|
||||
|
||||
#: ../../operators.rst:60
|
||||
msgid "以下、関連コマンドおよび関連関数のインターフェイスを説明する。"
|
||||
msgstr ""
|
||||
|
||||
#: ../../operators.rst:63
|
||||
msgid "インターフェイス"
|
||||
msgstr ""
|
||||
|
||||
#: ../../operators.rst:66
|
||||
msgid "カーネル引数"
|
||||
msgstr ""
|
||||
|
||||
#: ../../operators.rst:68
|
||||
msgid "McKernelのカーネル引数を表 :numref:`tab-kargs` に示す。"
|
||||
msgstr ""
|
||||
|
||||
#: ../../operators.rst:72
|
||||
msgid "McKernelのカーネル引数"
|
||||
msgstr ""
|
||||
|
||||
#: ../../operators.rst:75
|
||||
msgid "hidos"
|
||||
msgstr ""
|
||||
|
||||
#: ../../operators.rst:75
|
||||
msgid "IKCを有効にする。"
|
||||
msgstr ""
|
||||
|
||||
#: ../../operators.rst:77
|
||||
msgid "|dlv|"
|
||||
msgstr ""
|
||||
|
||||
#: ../../operators.rst
|
||||
msgid "Linuxのpanicハンドラ経由でダンプを行った場合の、ダ"
|
||||
msgstr ""
|
||||
|
||||
#: ../../operators.rst
|
||||
msgid "ンプ対象とするメモリ領域の種類を<level>に設定する。"
|
||||
msgstr ""
|
||||
|
||||
#: ../../operators.rst
|
||||
msgid "設定可能な値は以下の通り。"
|
||||
msgstr ""
|
||||
|
||||
#: ../../operators.rst:83 ../../operators.rst:164 ../../operators.rst:196
|
||||
#: ../../operators.rst:234
|
||||
msgid "0"
|
||||
msgstr ""
|
||||
|
||||
#: ../../operators.rst:84 ../../operators.rst:165
|
||||
msgid "IHKがMcKernelに割り当てたメモリ領域を出力する"
|
||||
msgstr ""
|
||||
|
||||
#: ../../operators.rst:85 ../../operators.rst:166
|
||||
msgid "24"
|
||||
msgstr ""
|
||||
|
||||
#: ../../operators.rst:86 ../../operators.rst:167
|
||||
msgid "カーネルが使用しているメモリ領域を出力する"
|
||||
msgstr ""
|
||||
|
||||
#: ../../operators.rst:88 ../../operators.rst:169
|
||||
msgid "指定がなかった場合は24が用いられる。"
|
||||
msgstr ""
|
||||
|
||||
#: ../../operators.rst:90
|
||||
msgid "|allow|"
|
||||
msgstr ""
|
||||
|
||||
#: ../../operators.rst
|
||||
msgid "McKernelに割り当てられたCPU数より大きい数のスレッド"
|
||||
msgstr ""
|
||||
|
||||
#: ../../operators.rst
|
||||
msgid "またはプロセスの生成を許可する。この引数が指定され"
|
||||
msgstr ""
|
||||
|
||||
#: ../../operators.rst
|
||||
msgid "ない場合に、CPU数より大きい数のスレッドまたはプロセ"
|
||||
msgstr ""
|
||||
|
||||
#: ../../operators.rst
|
||||
msgid "スをclone(), fork(), vfork()などで生成しようとする"
|
||||
msgstr ""
|
||||
|
||||
#: ../../operators.rst
|
||||
msgid "と、当該システムコールがEINVALエラーを返す。"
|
||||
msgstr ""
|
||||
|
||||
#: ../../operators.rst:102
|
||||
msgid "ブートスクリプト"
|
||||
msgstr "ブートスクリプト"
|
||||
|
||||
#: ../../operators.rst:105 ../../operators.rst:207
|
||||
msgid "書式"
|
||||
msgstr ""
|
||||
|
||||
#: ../../operators.rst:113 ../../operators.rst:217
|
||||
msgid "オプション"
|
||||
msgstr ""
|
||||
|
||||
#: ../../operators.rst:116
|
||||
msgid "|opt-c|"
|
||||
msgstr ""
|
||||
|
||||
#: ../../operators.rst
|
||||
msgid "McKernelに割り当てるCPUのリストを指定する。フォー"
|
||||
msgstr ""
|
||||
|
||||
#: ../../operators.rst
|
||||
msgid "マットは以下の通り。"
|
||||
msgstr ""
|
||||
|
||||
#: ../../operators.rst
|
||||
msgid "<CPU logical id>,<CPU logical id>...または"
|
||||
msgstr ""
|
||||
|
||||
#: ../../operators.rst
|
||||
msgid "<CPU logical id>-<CPU logical id>,<CPU logical id>"
|
||||
msgstr ""
|
||||
|
||||
#: ../../operators.rst
|
||||
msgid "-<CPU logical id>...または両者の混合。"
|
||||
msgstr ""
|
||||
|
||||
#: ../../operators.rst:122
|
||||
msgid "|opt-r|"
|
||||
msgstr ""
|
||||
|
||||
#: ../../operators.rst
|
||||
msgid "McKernelのCPUがIKCメッセージを送るLinux"
|
||||
msgstr ""
|
||||
|
||||
#: ../../operators.rst
|
||||
msgid "CPUを指定する。フォーマットは以下の通り。"
|
||||
msgstr ""
|
||||
|
||||
#: ../../operators.rst
|
||||
msgid "<CPU list>:<CPU id>+<CPU list>:<CPU id>..."
|
||||
msgstr ""
|
||||
|
||||
#: ../../operators.rst
|
||||
msgid "<CPU list>のフォーマットは-cオプションにおけるもの"
|
||||
msgstr ""
|
||||
|
||||
#: ../../operators.rst
|
||||
msgid "と同じである。"
|
||||
msgstr ""
|
||||
|
||||
#: ../../operators.rst
|
||||
msgid "各<CPU list>:<CPU id>は<CPU list>で示されるMcKernel"
|
||||
msgstr ""
|
||||
|
||||
#: ../../operators.rst
|
||||
msgid "のCPUが<CPU logical id>で示されるLinuxのCPUにIKC"
|
||||
msgstr ""
|
||||
|
||||
#: ../../operators.rst
|
||||
msgid "メッセージを送信することを意味する。"
|
||||
msgstr ""
|
||||
|
||||
#: ../../operators.rst:131
|
||||
msgid "|opt-m|"
|
||||
msgstr ""
|
||||
|
||||
#: ../../operators.rst
|
||||
msgid "McKernelに割り当てるメモリ領域を指定する。フォーマッ"
|
||||
msgstr ""
|
||||
|
||||
#: ../../operators.rst
|
||||
msgid "トは以下の通り。"
|
||||
msgstr ""
|
||||
|
||||
#: ../../operators.rst
|
||||
msgid "<size>@<NUMA-id>, <size>@<NUMA-id>..."
|
||||
msgstr ""
|
||||
|
||||
#: ../../operators.rst:135
|
||||
msgid "|opt-f|"
|
||||
msgstr ""
|
||||
|
||||
#: ../../operators.rst
|
||||
msgid "ihkmondが使用するsyslogプロトコルのfacilityを指定す"
|
||||
msgstr ""
|
||||
|
||||
#: ../../operators.rst
|
||||
msgid "る。デフォルトはLOG_LOCAL6。"
|
||||
msgstr ""
|
||||
|
||||
#: ../../operators.rst:138
|
||||
msgid "|opt-o|"
|
||||
msgstr ""
|
||||
|
||||
#: ../../operators.rst
|
||||
msgid "IHKのデバイスファイル(/dev/mcd*, /dev/mcos*)のオー"
|
||||
msgstr ""
|
||||
|
||||
#: ../../operators.rst
|
||||
msgid "ナーとグループの値を<user>[:<group>]の形式で指定す"
|
||||
msgstr ""
|
||||
|
||||
#: ../../operators.rst
|
||||
msgid "る。デフォルトはmcreboot.shを実行したユーザ。"
|
||||
msgstr ""
|
||||
|
||||
#: ../../operators.rst:142
|
||||
msgid "|opt-i|"
|
||||
msgstr ""
|
||||
|
||||
#: ../../operators.rst
|
||||
msgid "ihkmondがハングアップ検知のためにOS状態を確認する時"
|
||||
msgstr ""
|
||||
|
||||
#: ../../operators.rst
|
||||
msgid "間間隔を秒単位で指定する。-1が指定された場合はハン"
|
||||
msgstr ""
|
||||
|
||||
#: ../../operators.rst
|
||||
msgid "グアップ検知を行わない。指定がない場合はハングアッ"
|
||||
msgstr ""
|
||||
|
||||
#: ../../operators.rst
|
||||
msgid "プ検知を行わない。"
|
||||
msgstr ""
|
||||
|
||||
#: ../../operators.rst:147
|
||||
msgid "|opt-k|"
|
||||
msgstr ""
|
||||
|
||||
#: ../../operators.rst
|
||||
msgid "カーネルメッセージの/dev/logへのリダイレクト有無を"
|
||||
msgstr ""
|
||||
|
||||
#: ../../operators.rst
|
||||
msgid "指定する。0が指定された場合はリダイレクトを行わず、"
|
||||
msgstr ""
|
||||
|
||||
#: ../../operators.rst
|
||||
msgid "0以外が指定された場合はリダイレクトを行う。指定がな"
|
||||
msgstr ""
|
||||
|
||||
#: ../../operators.rst
|
||||
msgid "い場合はリダイレクトを行わない。"
|
||||
msgstr ""
|
||||
|
||||
#: ../../operators.rst:152
|
||||
msgid "-q <irq>"
|
||||
msgstr ""
|
||||
|
||||
#: ../../operators.rst
|
||||
msgid "IHKが使用するIRQ番号を指定する。指定がない場合は"
|
||||
msgstr ""
|
||||
|
||||
#: ../../operators.rst
|
||||
msgid "64-255の範囲で空いているものを使用する。"
|
||||
msgstr ""
|
||||
|
||||
#: ../../operators.rst:155
|
||||
msgid "-t"
|
||||
msgstr ""
|
||||
|
||||
#: ../../operators.rst
|
||||
msgid "(x86_64アーキテクチャのみ)Turbo"
|
||||
msgstr ""
|
||||
|
||||
#: ../../operators.rst
|
||||
msgid "Boostをオンにする。デフォルトはオフ。"
|
||||
msgstr ""
|
||||
|
||||
#: ../../operators.rst:158
|
||||
msgid "-d <level>"
|
||||
msgstr ""
|
||||
|
||||
#: ../../operators.rst:171
|
||||
msgid "-O"
|
||||
msgstr ""
|
||||
|
||||
#: ../../operators.rst
|
||||
msgid "またはプロセスの生成を許可する。指定がない場合は許可"
|
||||
msgstr ""
|
||||
|
||||
#: ../../operators.rst
|
||||
msgid "しない。すなわち、CPU数より大きい数のスレッドまたは"
|
||||
msgstr ""
|
||||
|
||||
#: ../../operators.rst
|
||||
msgid "プロセスを生成しようとするとエラーとなる。"
|
||||
msgstr ""
|
||||
|
||||
#: ../../operators.rst:187 ../../operators.rst:224
|
||||
msgid "説明"
|
||||
msgstr ""
|
||||
|
||||
#: ../../operators.rst:189
|
||||
msgid ""
|
||||
"McKernel関連カーネルモジュールをinsmodし、<cpulist>で指定されたCPUと<memlist>で指定されたメモリ領域からなるパーティションを作成し、IKC"
|
||||
" mapを<ikcmap>に設定し、前記パーティションにMcKernelをブートする。"
|
||||
msgstr ""
|
||||
|
||||
#: ../../operators.rst:193 ../../operators.rst:231
|
||||
msgid "戻り値"
|
||||
msgstr ""
|
||||
|
||||
#: ../../operators.rst:196 ../../operators.rst:234
|
||||
msgid "正常終了"
|
||||
msgstr ""
|
||||
|
||||
#: ../../operators.rst:198 ../../operators.rst:236
|
||||
msgid "0以外"
|
||||
msgstr ""
|
||||
|
||||
#: ../../operators.rst:198 ../../operators.rst:236
|
||||
msgid "エラー"
|
||||
msgstr ""
|
||||
|
||||
#: ../../operators.rst:202
|
||||
msgid "シャットダウンスクリプト"
|
||||
msgstr "シャットダウンスクリプト"
|
||||
|
||||
#: ../../operators.rst:219
|
||||
msgid "なし"
|
||||
msgstr ""
|
||||
|
||||
#: ../../operators.rst:226
|
||||
msgid "McKernelをシャットダウンし、McKernel用パーティションを削除し、関連カーネルモジュールをrmmodする。"
|
||||
msgstr ""
|
||||
|
||||
#: ../../operators.rst:240
|
||||
msgid "プロセス起動コマンド"
|
||||
msgstr ""
|
||||
|
||||
#: ../../operators.rst:245
|
||||
msgid "ダンプ解析コマンド"
|
||||
msgstr ""
|
||||
|
||||
#: ../../operators.rst:250
|
||||
msgid "ダンプ形式変換コマンド"
|
||||
msgstr ""
|
||||
|
||||
#: ../../operators.rst:255
|
||||
msgid "ブート手順"
|
||||
msgstr ""
|
||||
|
||||
#: ../../operators.rst:257
|
||||
msgid "mcreboot.shを用いてブート手順を説明する。"
|
||||
msgstr ""
|
||||
|
||||
#: ../../operators.rst:259 ../../operators.rst:906
|
||||
msgid "スクリプトは以下の通り。"
|
||||
msgstr ""
|
||||
|
||||
#: ../../operators.rst:852 ../../operators.rst:1050
|
||||
msgid "手順は以下の通り。"
|
||||
msgstr ""
|
||||
|
||||
#: ../../operators.rst:854
|
||||
msgid "ihkmondを起動する。ihkmondは任意のタイミングで起動してよい。これは、ihkmondはOSインスタンスの作成を検知して動作を開始するためである。(83行目)"
|
||||
msgstr ""
|
||||
|
||||
#: ../../operators.rst:856
|
||||
msgid "Linuxのカーネルバージョンが、mcoverlayfsが動作するものであるかを確認する。(200–216行目)"
|
||||
msgstr ""
|
||||
|
||||
#: ../../operators.rst:858
|
||||
msgid "irqbalanceを停止する。(251–257行目)"
|
||||
msgstr ""
|
||||
|
||||
#: ../../operators.rst:860
|
||||
msgid ""
|
||||
"/proc/irq/[n]/affinityの設定を保存した上でMcKernel "
|
||||
"CPUを担当から外す。担当CPUが無くなる場合は、全てのLinux CPUを指定する。(269–303行目)"
|
||||
msgstr ""
|
||||
|
||||
#: ../../operators.rst:864
|
||||
msgid "ihk.koをinsmodする。(307行目)"
|
||||
msgstr ""
|
||||
|
||||
#: ../../operators.rst:866
|
||||
msgid "Linuxによるメモリフラグメンテーションを緩和するために以下を実施する。(313–320行目)"
|
||||
msgstr ""
|
||||
|
||||
#: ../../operators.rst:868
|
||||
msgid "アクティブでないプロセスを積極的にスワップアウトするように設定する"
|
||||
msgstr ""
|
||||
|
||||
#: ../../operators.rst:870
|
||||
msgid "クリーンなページキャッシュを無効化し、またdentriesやinodeのslabオブジェクトのうち可能なものを破棄する"
|
||||
msgstr ""
|
||||
|
||||
#: ../../operators.rst:872
|
||||
msgid "連続する空き領域を結合してより大きな空き領域にまとめる"
|
||||
msgstr ""
|
||||
|
||||
#: ../../operators.rst:874
|
||||
msgid ""
|
||||
"ihk-smp-x86.koをinsmodする。(340行目)ihk-smp-x86.koは関数をihk.koに登録する。このため、ihk-"
|
||||
"smp-x86.koはihk.koをinsmodした後にinsmodする必要がある。"
|
||||
msgstr ""
|
||||
|
||||
#: ../../operators.rst:876
|
||||
msgid "メモリを予約する。(370行目)"
|
||||
msgstr ""
|
||||
|
||||
#: ../../operators.rst:878
|
||||
msgid "CPUを予約する。(374行目)"
|
||||
msgstr ""
|
||||
|
||||
#: ../../operators.rst:880
|
||||
msgid "McKernelのカーネルモジュールmcctrl.koをinsmodする。(382行目)mcctrl.koはMcKernelブート時に呼ばれる関数をihk.koに登録する。このため、mcctrl.koのinsmodはihk.koのinsmodの後に、またブートの前に行う必要がある。"
|
||||
msgstr ""
|
||||
|
||||
#: ../../operators.rst:882
|
||||
msgid "OSインスタンスを作成する。(406行目)"
|
||||
msgstr ""
|
||||
|
||||
#: ../../operators.rst:884
|
||||
msgid "OSインスタンスにCPUを割り当てる。(412行目)"
|
||||
msgstr ""
|
||||
|
||||
#: ../../operators.rst:886
|
||||
msgid "McKernel CPUのIKCメッセージ送信先のLinux CPUを設定する。(419行目)"
|
||||
msgstr ""
|
||||
|
||||
#: ../../operators.rst:888
|
||||
msgid "OSインスタンスにメモリを割り当てる。(426行目)"
|
||||
msgstr ""
|
||||
|
||||
#: ../../operators.rst:890
|
||||
msgid "カーネルイメージをロードする。(432行目)"
|
||||
msgstr ""
|
||||
|
||||
#: ../../operators.rst:892
|
||||
msgid "カーネル引数をカーネルに渡す。(438行目)"
|
||||
msgstr ""
|
||||
|
||||
#: ../../operators.rst:894
|
||||
msgid "カーネルをブートする。(444行目)"
|
||||
msgstr ""
|
||||
|
||||
#: ../../operators.rst:896
|
||||
msgid ""
|
||||
"/proc, "
|
||||
"/sysファイルの準備をする。また、その中でmcoverlayfs.koをinsmodする。mcoverlayfs.koは他モジュールとの依存関係を持たない。(454行目から567行目)なお、関数インターフェイスでの対応関数はihk_os_create_pseudofs()である。"
|
||||
msgstr ""
|
||||
|
||||
#: ../../operators.rst:898
|
||||
msgid "irqbalanceを、Linux CPUのみを対象とする設定で開始する。(569–587行目)"
|
||||
msgstr ""
|
||||
|
||||
#: ../../operators.rst:902
|
||||
msgid "シャットダウン手順"
|
||||
msgstr ""
|
||||
|
||||
#: ../../operators.rst:904
|
||||
msgid "mcstop+release.shを用いてシャットダウン手順を説明する。"
|
||||
msgstr ""
|
||||
|
||||
#: ../../operators.rst:1052
|
||||
msgid "ブート時にLinux CPUのみを対象とする設定で開始されたirqbalanceを停止する。(24–33行目)"
|
||||
msgstr ""
|
||||
|
||||
#: ../../operators.rst:1055
|
||||
msgid "全てのOSインスタンスを破壊する。OSインスタンスに割り当てられていた資源はIHKがLWKのために予約した状態に移行する。(35–50行目)"
|
||||
msgstr ""
|
||||
|
||||
#: ../../operators.rst:1057
|
||||
msgid "IHKがLWKのために予約していた資源を開放する。(52–77行目)"
|
||||
msgstr ""
|
||||
|
||||
#: ../../operators.rst:1059
|
||||
msgid "mcctrl.koをrmmodする。(81行目)"
|
||||
msgstr ""
|
||||
|
||||
#: ../../operators.rst:1061
|
||||
msgid ""
|
||||
"/proc, "
|
||||
"/sysファイルの準備をする。また、その中でmcoverlayfs.koをrmmodする。(87–100行目)なお、関数インターフェイスでの対応関数はihk_os_destroy_pseudofs()である。"
|
||||
msgstr ""
|
||||
|
||||
#: ../../operators.rst:1063
|
||||
msgid "ihk-smp-x86.koをrmmodする。(104行目)"
|
||||
msgstr ""
|
||||
|
||||
#: ../../operators.rst:1065
|
||||
msgid "ihk.koをrmmodする。(112行目)"
|
||||
msgstr ""
|
||||
|
||||
#: ../../operators.rst:1067
|
||||
msgid "ihkmondを停止する。(121行目)"
|
||||
msgstr ""
|
||||
|
||||
#: ../../operators.rst:1069
|
||||
msgid "/proc/irq/[n]/affinityの設定をブート時に保存しておいたものに戻し、ブート前の設定でirqbalanceを開始する。(124–135行目)"
|
||||
msgstr ""
|
||||
|
||||
#: ../../operators.rst:1071
|
||||
msgid "Linuxカーネルのスワップアウト積極度の設定をデフォルトの値に戻す。(138行目)"
|
||||
msgstr ""
|
||||
|
||||
#~ msgid "The following OS distributions and platforms are recommended:"
|
||||
#~ msgstr ""
|
||||
|
||||
#~ msgid "OS distribution"
|
||||
#~ msgstr ""
|
||||
|
||||
#~ msgid "CentOS 7.3 or later"
|
||||
#~ msgstr ""
|
||||
|
||||
#~ msgid "RHEL 7.3 or later"
|
||||
#~ msgstr ""
|
||||
|
||||
#~ msgid "Platform"
|
||||
#~ msgstr ""
|
||||
|
||||
#~ msgid "Intel Xeon"
|
||||
#~ msgstr ""
|
||||
|
||||
#~ msgid "Intel Xeon Phi"
|
||||
#~ msgstr ""
|
||||
|
||||
#~ msgid "Fujitsu A64FX"
|
||||
#~ msgstr ""
|
||||
|
||||
#~ msgid "Prepare files for building McKernel"
|
||||
#~ msgstr ""
|
||||
|
||||
#~ msgid ""
|
||||
#~ "Grant read permission to the System.map"
|
||||
#~ " file of your kernel version on "
|
||||
#~ "the build machine:"
|
||||
#~ msgstr ""
|
||||
|
||||
#~ msgid "Install the following packages to the build machine:"
|
||||
#~ msgstr ""
|
||||
|
||||
#~ msgid "When having access to repositories"
|
||||
#~ msgstr ""
|
||||
|
||||
#~ msgid "On RHEL 8, enable the CodeReady Linux Builder (CLB) repository:"
|
||||
#~ msgstr ""
|
||||
|
||||
#~ msgid "On CentOS 8, enable the PowerTools repository:"
|
||||
#~ msgstr ""
|
||||
|
||||
#~ msgid "Install with yum:"
|
||||
#~ msgstr ""
|
||||
|
||||
#~ msgid "When not having access to repositories"
|
||||
#~ msgstr ""
|
||||
|
||||
#~ msgid ""
|
||||
#~ "Ask the system administrator to install"
|
||||
#~ " them. Note that ``libdwarf-devel`` "
|
||||
#~ "is in the CodeReady Linux Builder "
|
||||
#~ "repository on RHEL 8 or in the "
|
||||
#~ "PowerTools repository on CentOS 8."
|
||||
#~ msgstr ""
|
||||
|
||||
#~ msgid "Clone, compile, install"
|
||||
#~ msgstr ""
|
||||
|
||||
#~ msgid "Clone the source code:"
|
||||
#~ msgstr ""
|
||||
|
||||
#~ msgid "(Optional) Checkout to the specific branch or version:"
|
||||
#~ msgstr ""
|
||||
|
||||
#~ msgid ""
|
||||
#~ "Foe example, if you want to try"
|
||||
#~ " the development branch, use “development”"
|
||||
#~ " as the pathspec. If you want "
|
||||
#~ "to try the prerelease version 1.7.0-0.2,"
|
||||
#~ " use “1.7.0-0.2”."
|
||||
#~ msgstr ""
|
||||
|
||||
#~ msgid "Move to build directory:"
|
||||
#~ msgstr ""
|
||||
|
||||
#~ msgid "Run cmake:"
|
||||
#~ msgstr ""
|
||||
|
||||
#~ msgid "When not cross-compiling:"
|
||||
#~ msgstr ""
|
||||
|
||||
#~ msgid "When cross-compiling:"
|
||||
#~ msgstr ""
|
||||
|
||||
#~ msgid "Install with cmake"
|
||||
#~ msgstr ""
|
||||
|
||||
#~ msgid "Install with make:"
|
||||
#~ msgstr ""
|
||||
|
||||
#~ msgid ""
|
||||
#~ "The kernel modules and McKernel kernel"
|
||||
#~ " image should be installed under the"
|
||||
#~ " **ihk+mckernel** folder in your home "
|
||||
#~ "directory."
|
||||
#~ msgstr ""
|
||||
|
||||
#~ msgid "Install with rpm"
|
||||
#~ msgstr ""
|
||||
|
||||
#~ msgid "Create the tarball and the spec file:"
|
||||
#~ msgstr ""
|
||||
|
||||
#~ msgid "Create the rpm package:"
|
||||
#~ msgstr ""
|
||||
|
||||
#~ msgid "Install the rpm package:"
|
||||
#~ msgstr ""
|
||||
|
||||
#~ msgid ""
|
||||
#~ "The kernel modules and McKernel kernel"
|
||||
#~ " image are installed under the "
|
||||
#~ "standard system directories."
|
||||
#~ msgstr ""
|
||||
|
||||
#~ msgid "Prepare files and change settings for installing McKernel"
|
||||
#~ msgstr ""
|
||||
|
||||
#~ msgid "Disable SELinux of the compute nodes:"
|
||||
#~ msgstr ""
|
||||
|
||||
#~ msgid "Change the file to SELINUX=disabled. And then reboot the compute nodes:"
|
||||
#~ msgstr ""
|
||||
|
||||
#~ msgid "Install the following packages to the compute nodes:"
|
||||
#~ msgstr ""
|
||||
|
||||
#~ msgid ""
|
||||
#~ "Ask the system administrator to install"
|
||||
#~ " them. Note that ``libdwarf`` is in"
|
||||
#~ " the CodeReady Linux Builder repository "
|
||||
#~ "on RHEL 8 or in the PowerTools "
|
||||
#~ "repository on CentOS 8."
|
||||
#~ msgstr ""
|
||||
|
||||
#~ msgid "起動停止"
|
||||
#~ msgstr "起動停止"
|
||||
|
||||
#~ msgid "関連ファイル"
|
||||
#~ msgstr "関連ファイル"
|
||||
|
||||
#~ msgid "McKernelを用いたシステムを運用するシステム管理者を対象として、運用手順を説明する。"
|
||||
#~ msgstr ""
|
||||
|
||||
#~ msgid ""
|
||||
#~ "SMPプロセッサ向け、x86_64アーキ向けの関連ファイルの場所は以下の通り。 "
|
||||
#~ "なお、IHK/McKernelのインストールディレクトリを<install>とする。"
|
||||
#~ msgstr "運用向けコマンド・デーモンのファイルの場所は以下の通り。 なお、IHK/McKernelのインストールディレクトリを<install>とする。"
|
||||
|
||||
#~ msgid ""
|
||||
#~ "SMPプロセッサ向け、x86_64アーキ向けの関連ファイルの場所は以下の通り。 "
|
||||
#~ "なお、IHK/McKernelのインストールディレクトリを<install>とする。 The related "
|
||||
#~ "files and their locations are as "
|
||||
#~ "follows. Denote by ``<install>`` the "
|
||||
#~ "install directory of IHK/McKernel."
|
||||
#~ msgstr ""
|
||||
|
||||
#~ msgid ""
|
||||
#~ "The related files and their locations"
|
||||
#~ " are as follows. Denote by "
|
||||
#~ "``<install>`` the install directory of "
|
||||
#~ "IHK/McKernel."
|
||||
#~ msgstr ""
|
||||
#~ "SMPプロセッサ向け、x86_64アーキ向けの関連ファイルの場所は以下の通り。 "
|
||||
#~ "なお、IHK/McKernelのインストールディレクトリを<install>とする。"
|
||||
|
||||
#~ msgid "運用向けコマンド・デーモンのファイルの場所は以下の通り。 なお、IHK/McKernelのインストールディレクトリを<install>とする。"
|
||||
#~ msgstr "運用向けコマンド・デーモンのファイルの場所は以下の通り。 なお、IHK/McKernelのインストールディレクトリを<install>とする。"
|
||||
|
||||
#~ msgid "運用向けコマンド・デーモンのファイルの場所は以下の通り。"
|
||||
#~ msgstr ""
|
||||
#~ "The commands and daemons for operation"
|
||||
#~ " and their locations are as follows."
|
||||
|
||||
#~ msgid "カーネルイメージ"
|
||||
#~ msgstr ""
|
||||
|
||||
#~ msgid "ダンプ解析ツール"
|
||||
#~ msgstr ""
|
||||
|
||||
#~ msgid "ダンプ形式変換ツール"
|
||||
#~ msgstr ""
|
||||
|
||||
#~ msgid "tool"
|
||||
#~ msgstr "ツール"
|
||||
|
||||
821
docs/locales/ja/LC_MESSAGES/ops.po
Normal file
821
docs/locales/ja/LC_MESSAGES/ops.po
Normal file
@ -0,0 +1,821 @@
|
||||
# SOME DESCRIPTIVE TITLE.
|
||||
# Copyright (C) 2020, Masamichi Takagi, Balazs Gerofi, Yutaka Ishikawa
|
||||
# This file is distributed under the same license as the IHK/McKernel
|
||||
# package.
|
||||
# FIRST AUTHOR <EMAIL@ADDRESS>, 2020.
|
||||
#
|
||||
#, fuzzy
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: IHK/McKernel \n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2020-08-06 10:10+0900\n"
|
||||
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
||||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
||||
"Language-Team: LANGUAGE <LL@li.org>\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=utf-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Generated-By: Babel 2.7.0\n"
|
||||
|
||||
#: ../../ops.rst:5
|
||||
msgid "McKernelを用いたシステムを運用するシステム管理者を対象として、運用手順を説明する。"
|
||||
msgstr ""
|
||||
|
||||
#: ../../ops.rst:8
|
||||
msgid "Installation"
|
||||
msgstr "インストール"
|
||||
|
||||
#: ../../ops.rst:10
|
||||
msgid "See `Quick Guide -- Installation <quick.html#installation>`__."
|
||||
msgstr ""
|
||||
|
||||
#: ../../uti.rst:2
|
||||
msgid "Advanced: Enable Utility Thread offloading Interface (UTI)"
|
||||
msgstr ""
|
||||
|
||||
#: ../../uti.rst:4
|
||||
msgid ""
|
||||
"UTI enables a runtime such as MPI runtime to spawn utility threads such "
|
||||
"as MPI asynchronous progress threads to Linux cores."
|
||||
msgstr ""
|
||||
|
||||
#: ../../uti.rst:8
|
||||
msgid "Install capstone"
|
||||
msgstr ""
|
||||
|
||||
#: ../../uti.rst:11 ../../uti.rst:22
|
||||
msgid "When compute nodes don't have access to repositories"
|
||||
msgstr ""
|
||||
|
||||
#: ../../uti.rst:13
|
||||
msgid "Install EPEL capstone-devel:"
|
||||
msgstr ""
|
||||
|
||||
#: ../../uti.rst:24
|
||||
msgid ""
|
||||
"Ask the system administrator to install ``capstone-devel``. Note that it "
|
||||
"is in the EPEL repository."
|
||||
msgstr ""
|
||||
|
||||
#: ../../uti.rst:28
|
||||
msgid "Install syscall_intercept"
|
||||
msgstr ""
|
||||
|
||||
#: ../../uti.rst:37
|
||||
msgid "Install UTI for McKernel"
|
||||
msgstr ""
|
||||
|
||||
#: ../../uti.rst:39
|
||||
msgid "Install:"
|
||||
msgstr ""
|
||||
|
||||
#: ../../uti.rst:49
|
||||
msgid "Install McKernel"
|
||||
msgstr ""
|
||||
|
||||
#: ../../uti.rst:51
|
||||
msgid "Add ``-DENABLE_UTI=ON`` option to ``cmake``:"
|
||||
msgstr ""
|
||||
|
||||
#: ../../uti.rst:58
|
||||
msgid "Run programs"
|
||||
msgstr ""
|
||||
|
||||
#: ../../uti.rst:60
|
||||
msgid "Add ``--enable-uti`` option to ``mcexec``:"
|
||||
msgstr ""
|
||||
|
||||
#: ../../uti.rst:67
|
||||
msgid "Install UTI for Linux"
|
||||
msgstr ""
|
||||
|
||||
#: ../../uti.rst:69
|
||||
msgid ""
|
||||
"You should skip this step if it's already installed as with, for example,"
|
||||
" Fujitsu Technical Computing Suite."
|
||||
msgstr ""
|
||||
|
||||
#: ../../uti.rst:72
|
||||
msgid "Install by make"
|
||||
msgstr ""
|
||||
|
||||
#: ../../uti.rst:82
|
||||
msgid "Install by rpm"
|
||||
msgstr ""
|
||||
|
||||
#: ../../ops.rst:15
|
||||
msgid "起動停止"
|
||||
msgstr ""
|
||||
|
||||
#: ../../ops.rst:18
|
||||
msgid "関連ファイル"
|
||||
msgstr ""
|
||||
|
||||
#: ../../ops.rst:20
|
||||
msgid ""
|
||||
"SMPプロセッサ向け、x86_64アーキ向けの関連ファイルの場所は以下の通り。 "
|
||||
"なお、IHK/McKernelのインストールディレクトリを<install>とする。"
|
||||
msgstr ""
|
||||
|
||||
#: ../../ops.rst:24
|
||||
msgid "<install>/kmod/ihk.ko"
|
||||
msgstr ""
|
||||
|
||||
#: ../../ops.rst:24
|
||||
msgid "IHK-master core"
|
||||
msgstr ""
|
||||
|
||||
#: ../../ops.rst:26
|
||||
msgid "|ihk-smp|"
|
||||
msgstr ""
|
||||
|
||||
#: ../../ops.rst:26
|
||||
msgid "IHK-master driver"
|
||||
msgstr ""
|
||||
|
||||
#: ../../ops.rst:29
|
||||
msgid "|mcctrl|"
|
||||
msgstr ""
|
||||
|
||||
#: ../../ops.rst:29
|
||||
msgid "Delegator module"
|
||||
msgstr ""
|
||||
|
||||
#: ../../ops.rst:32
|
||||
msgid "|mckernel.img|"
|
||||
msgstr ""
|
||||
|
||||
#: ../../ops.rst:32
|
||||
msgid "カーネルイメージ"
|
||||
msgstr ""
|
||||
|
||||
#: ../../ops.rst:40
|
||||
msgid "運用向けコマンド・デーモンのファイルの場所は以下の通り。 なお、IHK/McKernelのインストールディレクトリを<install>とする。"
|
||||
msgstr ""
|
||||
|
||||
#: ../../ops.rst:44
|
||||
msgid "|mcreboot|"
|
||||
msgstr ""
|
||||
|
||||
#: ../../ops.rst:44 ../../ops.rst:104
|
||||
msgid "ブートスクリプト"
|
||||
msgstr ""
|
||||
|
||||
#: ../../ops.rst:47
|
||||
msgid "|mcstop|"
|
||||
msgstr ""
|
||||
|
||||
#: ../../ops.rst:47 ../../ops.rst:204
|
||||
msgid "シャットダウンスクリプト"
|
||||
msgstr ""
|
||||
|
||||
#: ../../ops.rst:50
|
||||
msgid "<install>/bin/mcexec"
|
||||
msgstr ""
|
||||
|
||||
#: ../../ops.rst:50 ../../ops.rst:242
|
||||
msgid "プロセス起動コマンド"
|
||||
msgstr ""
|
||||
|
||||
#: ../../ops.rst:52
|
||||
msgid "<install>/bin/eclair"
|
||||
msgstr ""
|
||||
|
||||
#: ../../ops.rst:52
|
||||
msgid "ダンプ解析ツール"
|
||||
msgstr ""
|
||||
|
||||
#: ../../ops.rst:54
|
||||
msgid "|vmcore2mckdump|"
|
||||
msgstr ""
|
||||
|
||||
#: ../../ops.rst:54
|
||||
msgid "ダンプ形式変換ツール"
|
||||
msgstr ""
|
||||
|
||||
#: ../../ops.rst:62
|
||||
msgid "以下、関連コマンドおよび関連関数のインターフェイスを説明する。"
|
||||
msgstr ""
|
||||
|
||||
#: ../../ops.rst:65
|
||||
msgid "インターフェイス"
|
||||
msgstr ""
|
||||
|
||||
#: ../../ops.rst:68
|
||||
msgid "カーネル引数"
|
||||
msgstr ""
|
||||
|
||||
#: ../../ops.rst:70
|
||||
msgid "McKernelのカーネル引数を表 :numref:`tab-kargs` に示す。"
|
||||
msgstr ""
|
||||
|
||||
#: ../../ops.rst:74
|
||||
msgid "McKernelのカーネル引数"
|
||||
msgstr ""
|
||||
|
||||
#: ../../ops.rst:77
|
||||
msgid "hidos"
|
||||
msgstr ""
|
||||
|
||||
#: ../../ops.rst:77
|
||||
msgid "IKCを有効にする。"
|
||||
msgstr ""
|
||||
|
||||
#: ../../ops.rst:79
|
||||
msgid "|dlv|"
|
||||
msgstr ""
|
||||
|
||||
#: ../../ops.rst
|
||||
msgid "Linuxのpanicハンドラ経由でダンプを行った場合の、ダ"
|
||||
msgstr ""
|
||||
|
||||
#: ../../ops.rst
|
||||
msgid "ンプ対象とするメモリ領域の種類を<level>に設定する。"
|
||||
msgstr ""
|
||||
|
||||
#: ../../ops.rst
|
||||
msgid "設定可能な値は以下の通り。"
|
||||
msgstr ""
|
||||
|
||||
#: ../../ops.rst:85 ../../ops.rst:166 ../../ops.rst:198 ../../ops.rst:236
|
||||
msgid "0"
|
||||
msgstr ""
|
||||
|
||||
#: ../../ops.rst:86 ../../ops.rst:167
|
||||
msgid "IHKがMcKernelに割り当てたメモリ領域を出力する"
|
||||
msgstr ""
|
||||
|
||||
#: ../../ops.rst:87 ../../ops.rst:168
|
||||
msgid "24"
|
||||
msgstr ""
|
||||
|
||||
#: ../../ops.rst:88 ../../ops.rst:169
|
||||
msgid "カーネルが使用しているメモリ領域を出力する"
|
||||
msgstr ""
|
||||
|
||||
#: ../../ops.rst:90 ../../ops.rst:171
|
||||
msgid "指定がなかった場合は24が用いられる。"
|
||||
msgstr ""
|
||||
|
||||
#: ../../ops.rst:92
|
||||
msgid "|allow|"
|
||||
msgstr ""
|
||||
|
||||
#: ../../ops.rst
|
||||
msgid "McKernelに割り当てられたCPU数より大きい数のスレッド"
|
||||
msgstr ""
|
||||
|
||||
#: ../../ops.rst
|
||||
msgid "またはプロセスの生成を許可する。この引数が指定され"
|
||||
msgstr ""
|
||||
|
||||
#: ../../ops.rst
|
||||
msgid "ない場合に、CPU数より大きい数のスレッドまたはプロセ"
|
||||
msgstr ""
|
||||
|
||||
#: ../../ops.rst
|
||||
msgid "スをclone(), fork(), vfork()などで生成しようとする"
|
||||
msgstr ""
|
||||
|
||||
#: ../../ops.rst
|
||||
msgid "と、当該システムコールがEINVALエラーを返す。"
|
||||
msgstr ""
|
||||
|
||||
#: ../../ops.rst:107 ../../ops.rst:209
|
||||
msgid "書式"
|
||||
msgstr ""
|
||||
|
||||
#: ../../ops.rst:115 ../../ops.rst:219
|
||||
msgid "オプション"
|
||||
msgstr ""
|
||||
|
||||
#: ../../ops.rst:118
|
||||
msgid "|opt-c|"
|
||||
msgstr ""
|
||||
|
||||
#: ../../ops.rst
|
||||
msgid "McKernelに割り当てるCPUのリストを指定する。フォー"
|
||||
msgstr ""
|
||||
|
||||
#: ../../ops.rst
|
||||
msgid "マットは以下の通り。"
|
||||
msgstr ""
|
||||
|
||||
#: ../../ops.rst
|
||||
msgid "<CPU logical id>,<CPU logical id>...または"
|
||||
msgstr ""
|
||||
|
||||
#: ../../ops.rst
|
||||
msgid "<CPU logical id>-<CPU logical id>,<CPU logical id>"
|
||||
msgstr ""
|
||||
|
||||
#: ../../ops.rst
|
||||
msgid "-<CPU logical id>...または両者の混合。"
|
||||
msgstr ""
|
||||
|
||||
#: ../../ops.rst:124
|
||||
msgid "|opt-r|"
|
||||
msgstr ""
|
||||
|
||||
#: ../../ops.rst
|
||||
msgid "McKernelのCPUがIKCメッセージを送るLinux"
|
||||
msgstr ""
|
||||
|
||||
#: ../../ops.rst
|
||||
msgid "CPUを指定する。フォーマットは以下の通り。"
|
||||
msgstr ""
|
||||
|
||||
#: ../../ops.rst
|
||||
msgid "<CPU list>:<CPU id>+<CPU list>:<CPU id>..."
|
||||
msgstr ""
|
||||
|
||||
#: ../../ops.rst
|
||||
msgid "<CPU list>のフォーマットは-cオプションにおけるもの"
|
||||
msgstr ""
|
||||
|
||||
#: ../../ops.rst
|
||||
msgid "と同じである。"
|
||||
msgstr ""
|
||||
|
||||
#: ../../ops.rst
|
||||
msgid "各<CPU list>:<CPU id>は<CPU list>で示されるMcKernel"
|
||||
msgstr ""
|
||||
|
||||
#: ../../ops.rst
|
||||
msgid "のCPUが<CPU logical id>で示されるLinuxのCPUにIKC"
|
||||
msgstr ""
|
||||
|
||||
#: ../../ops.rst
|
||||
msgid "メッセージを送信することを意味する。"
|
||||
msgstr ""
|
||||
|
||||
#: ../../ops.rst:133
|
||||
msgid "|opt-m|"
|
||||
msgstr ""
|
||||
|
||||
#: ../../ops.rst
|
||||
msgid "McKernelに割り当てるメモリ領域を指定する。フォーマッ"
|
||||
msgstr ""
|
||||
|
||||
#: ../../ops.rst
|
||||
msgid "トは以下の通り。"
|
||||
msgstr ""
|
||||
|
||||
#: ../../ops.rst
|
||||
msgid "<size>@<NUMA-id>, <size>@<NUMA-id>..."
|
||||
msgstr ""
|
||||
|
||||
#: ../../ops.rst:137
|
||||
msgid "|opt-f|"
|
||||
msgstr ""
|
||||
|
||||
#: ../../ops.rst
|
||||
msgid "ihkmondが使用するsyslogプロトコルのfacilityを指定す"
|
||||
msgstr ""
|
||||
|
||||
#: ../../ops.rst
|
||||
msgid "る。デフォルトはLOG_LOCAL6。"
|
||||
msgstr ""
|
||||
|
||||
#: ../../ops.rst:140
|
||||
msgid "|opt-o|"
|
||||
msgstr ""
|
||||
|
||||
#: ../../ops.rst
|
||||
msgid "IHKのデバイスファイル(/dev/mcd*, /dev/mcos*)のオー"
|
||||
msgstr ""
|
||||
|
||||
#: ../../ops.rst
|
||||
msgid "ナーとグループの値を<user>[:<group>]の形式で指定す"
|
||||
msgstr ""
|
||||
|
||||
#: ../../ops.rst
|
||||
msgid "る。デフォルトはmcreboot.shを実行したユーザ。"
|
||||
msgstr ""
|
||||
|
||||
#: ../../ops.rst:144
|
||||
msgid "|opt-i|"
|
||||
msgstr ""
|
||||
|
||||
#: ../../ops.rst
|
||||
msgid "ihkmondがハングアップ検知のためにOS状態を確認する時"
|
||||
msgstr ""
|
||||
|
||||
#: ../../ops.rst
|
||||
msgid "間間隔を秒単位で指定する。-1が指定された場合はハン"
|
||||
msgstr ""
|
||||
|
||||
#: ../../ops.rst
|
||||
msgid "グアップ検知を行わない。指定がない場合はハングアッ"
|
||||
msgstr ""
|
||||
|
||||
#: ../../ops.rst
|
||||
msgid "プ検知を行わない。"
|
||||
msgstr ""
|
||||
|
||||
#: ../../ops.rst:149
|
||||
msgid "|opt-k|"
|
||||
msgstr ""
|
||||
|
||||
#: ../../ops.rst
|
||||
msgid "カーネルメッセージの/dev/logへのリダイレクト有無を"
|
||||
msgstr ""
|
||||
|
||||
#: ../../ops.rst
|
||||
msgid "指定する。0が指定された場合はリダイレクトを行わず、"
|
||||
msgstr ""
|
||||
|
||||
#: ../../ops.rst
|
||||
msgid "0以外が指定された場合はリダイレクトを行う。指定がな"
|
||||
msgstr ""
|
||||
|
||||
#: ../../ops.rst
|
||||
msgid "い場合はリダイレクトを行わない。"
|
||||
msgstr ""
|
||||
|
||||
#: ../../ops.rst:154
|
||||
msgid "-q <irq>"
|
||||
msgstr ""
|
||||
|
||||
#: ../../ops.rst
|
||||
msgid "IHKが使用するIRQ番号を指定する。指定がない場合は"
|
||||
msgstr ""
|
||||
|
||||
#: ../../ops.rst
|
||||
msgid "64-255の範囲で空いているものを使用する。"
|
||||
msgstr ""
|
||||
|
||||
#: ../../ops.rst:157
|
||||
msgid "-t"
|
||||
msgstr ""
|
||||
|
||||
#: ../../ops.rst
|
||||
msgid "(x86_64アーキテクチャのみ)Turbo"
|
||||
msgstr ""
|
||||
|
||||
#: ../../ops.rst
|
||||
msgid "Boostをオンにする。デフォルトはオフ。"
|
||||
msgstr ""
|
||||
|
||||
#: ../../ops.rst:160
|
||||
msgid "-d <level>"
|
||||
msgstr ""
|
||||
|
||||
#: ../../ops.rst:173
|
||||
msgid "-O"
|
||||
msgstr ""
|
||||
|
||||
#: ../../ops.rst
|
||||
msgid "またはプロセスの生成を許可する。指定がない場合は許可"
|
||||
msgstr ""
|
||||
|
||||
#: ../../ops.rst
|
||||
msgid "しない。すなわち、CPU数より大きい数のスレッドまたは"
|
||||
msgstr ""
|
||||
|
||||
#: ../../ops.rst
|
||||
msgid "プロセスを生成しようとするとエラーとなる。"
|
||||
msgstr ""
|
||||
|
||||
#: ../../ops.rst:189 ../../ops.rst:226
|
||||
msgid "説明"
|
||||
msgstr ""
|
||||
|
||||
#: ../../ops.rst:191
|
||||
msgid ""
|
||||
"McKernel関連カーネルモジュールをinsmodし、<cpulist>で指定されたCPUと<memlist>で指定されたメモリ領域からなるパーティションを作成し、IKC"
|
||||
" mapを<ikcmap>に設定し、前記パーティションにMcKernelをブートする。"
|
||||
msgstr ""
|
||||
|
||||
#: ../../ops.rst:195 ../../ops.rst:233
|
||||
msgid "戻り値"
|
||||
msgstr ""
|
||||
|
||||
#: ../../ops.rst:198 ../../ops.rst:236
|
||||
msgid "正常終了"
|
||||
msgstr ""
|
||||
|
||||
#: ../../ops.rst:200 ../../ops.rst:238
|
||||
msgid "0以外"
|
||||
msgstr ""
|
||||
|
||||
#: ../../ops.rst:200 ../../ops.rst:238
|
||||
msgid "エラー"
|
||||
msgstr ""
|
||||
|
||||
#: ../../ops.rst:221
|
||||
msgid "なし"
|
||||
msgstr ""
|
||||
|
||||
#: ../../ops.rst:228
|
||||
msgid "McKernelをシャットダウンし、McKernel用パーティションを削除し、関連カーネルモジュールをrmmodする。"
|
||||
msgstr ""
|
||||
|
||||
#: ../../ops.rst:247
|
||||
msgid "ダンプ解析コマンド"
|
||||
msgstr ""
|
||||
|
||||
#: ../../ops.rst:252
|
||||
msgid "ダンプ形式変換コマンド"
|
||||
msgstr ""
|
||||
|
||||
#: ../../ops.rst:257
|
||||
msgid "ブート手順"
|
||||
msgstr ""
|
||||
|
||||
#: ../../ops.rst:259
|
||||
msgid "mcreboot.shを用いてブート手順を説明する。"
|
||||
msgstr ""
|
||||
|
||||
#: ../../ops.rst:261 ../../ops.rst:908
|
||||
msgid "スクリプトは以下の通り。"
|
||||
msgstr ""
|
||||
|
||||
#: ../../ops.rst:854 ../../ops.rst:1052
|
||||
msgid "手順は以下の通り。"
|
||||
msgstr ""
|
||||
|
||||
#: ../../ops.rst:856
|
||||
msgid "ihkmondを起動する。ihkmondは任意のタイミングで起動してよい。これは、ihkmondはOSインスタンスの作成を検知して動作を開始するためである。(83行目)"
|
||||
msgstr ""
|
||||
|
||||
#: ../../ops.rst:858
|
||||
msgid "Linuxのカーネルバージョンが、mcoverlayfsが動作するものであるかを確認する。(200–216行目)"
|
||||
msgstr ""
|
||||
|
||||
#: ../../ops.rst:860
|
||||
msgid "irqbalanceを停止する。(251–257行目)"
|
||||
msgstr ""
|
||||
|
||||
#: ../../ops.rst:862
|
||||
msgid ""
|
||||
"/proc/irq/[n]/affinityの設定を保存した上でMcKernel "
|
||||
"CPUを担当から外す。担当CPUが無くなる場合は、全てのLinux CPUを指定する。(269–303行目)"
|
||||
msgstr ""
|
||||
|
||||
#: ../../ops.rst:866
|
||||
msgid "ihk.koをinsmodする。(307行目)"
|
||||
msgstr ""
|
||||
|
||||
#: ../../ops.rst:868
|
||||
msgid "Linuxによるメモリフラグメンテーションを緩和するために以下を実施する。(313–320行目)"
|
||||
msgstr ""
|
||||
|
||||
#: ../../ops.rst:870
|
||||
msgid "アクティブでないプロセスを積極的にスワップアウトするように設定する"
|
||||
msgstr ""
|
||||
|
||||
#: ../../ops.rst:872
|
||||
msgid "クリーンなページキャッシュを無効化し、またdentriesやinodeのslabオブジェクトのうち可能なものを破棄する"
|
||||
msgstr ""
|
||||
|
||||
#: ../../ops.rst:874
|
||||
msgid "連続する空き領域を結合してより大きな空き領域にまとめる"
|
||||
msgstr ""
|
||||
|
||||
#: ../../ops.rst:876
|
||||
msgid ""
|
||||
"ihk-smp-x86.koをinsmodする。(340行目)ihk-smp-x86.koは関数をihk.koに登録する。このため、ihk-"
|
||||
"smp-x86.koはihk.koをinsmodした後にinsmodする必要がある。"
|
||||
msgstr ""
|
||||
|
||||
#: ../../ops.rst:878
|
||||
msgid "メモリを予約する。(370行目)"
|
||||
msgstr ""
|
||||
|
||||
#: ../../ops.rst:880
|
||||
msgid "CPUを予約する。(374行目)"
|
||||
msgstr ""
|
||||
|
||||
#: ../../ops.rst:882
|
||||
msgid "McKernelのカーネルモジュールmcctrl.koをinsmodする。(382行目)mcctrl.koはMcKernelブート時に呼ばれる関数をihk.koに登録する。このため、mcctrl.koのinsmodはihk.koのinsmodの後に、またブートの前に行う必要がある。"
|
||||
msgstr ""
|
||||
|
||||
#: ../../ops.rst:884
|
||||
msgid "OSインスタンスを作成する。(406行目)"
|
||||
msgstr ""
|
||||
|
||||
#: ../../ops.rst:886
|
||||
msgid "OSインスタンスにCPUを割り当てる。(412行目)"
|
||||
msgstr ""
|
||||
|
||||
#: ../../ops.rst:888
|
||||
msgid "McKernel CPUのIKCメッセージ送信先のLinux CPUを設定する。(419行目)"
|
||||
msgstr ""
|
||||
|
||||
#: ../../ops.rst:890
|
||||
msgid "OSインスタンスにメモリを割り当てる。(426行目)"
|
||||
msgstr ""
|
||||
|
||||
#: ../../ops.rst:892
|
||||
msgid "カーネルイメージをロードする。(432行目)"
|
||||
msgstr ""
|
||||
|
||||
#: ../../ops.rst:894
|
||||
msgid "カーネル引数をカーネルに渡す。(438行目)"
|
||||
msgstr ""
|
||||
|
||||
#: ../../ops.rst:896
|
||||
msgid "カーネルをブートする。(444行目)"
|
||||
msgstr ""
|
||||
|
||||
#: ../../ops.rst:898
|
||||
msgid ""
|
||||
"/proc, "
|
||||
"/sysファイルの準備をする。また、その中でmcoverlayfs.koをinsmodする。mcoverlayfs.koは他モジュールとの依存関係を持たない。(454行目から567行目)なお、関数インターフェイスでの対応関数はihk_os_create_pseudofs()である。"
|
||||
msgstr ""
|
||||
|
||||
#: ../../ops.rst:900
|
||||
msgid "irqbalanceを、Linux CPUのみを対象とする設定で開始する。(569–587行目)"
|
||||
msgstr ""
|
||||
|
||||
#: ../../ops.rst:904
|
||||
msgid "シャットダウン手順"
|
||||
msgstr ""
|
||||
|
||||
#: ../../ops.rst:906
|
||||
msgid "mcstop+release.shを用いてシャットダウン手順を説明する。"
|
||||
msgstr ""
|
||||
|
||||
#: ../../ops.rst:1054
|
||||
msgid "ブート時にLinux CPUのみを対象とする設定で開始されたirqbalanceを停止する。(24–33行目)"
|
||||
msgstr ""
|
||||
|
||||
#: ../../ops.rst:1057
|
||||
msgid "全てのOSインスタンスを破壊する。OSインスタンスに割り当てられていた資源はIHKがLWKのために予約した状態に移行する。(35–50行目)"
|
||||
msgstr ""
|
||||
|
||||
#: ../../ops.rst:1059
|
||||
msgid "IHKがLWKのために予約していた資源を開放する。(52–77行目)"
|
||||
msgstr ""
|
||||
|
||||
#: ../../ops.rst:1061
|
||||
msgid "mcctrl.koをrmmodする。(81行目)"
|
||||
msgstr ""
|
||||
|
||||
#: ../../ops.rst:1063
|
||||
msgid ""
|
||||
"/proc, "
|
||||
"/sysファイルの準備をする。また、その中でmcoverlayfs.koをrmmodする。(87–100行目)なお、関数インターフェイスでの対応関数はihk_os_destroy_pseudofs()である。"
|
||||
msgstr ""
|
||||
|
||||
#: ../../ops.rst:1065
|
||||
msgid "ihk-smp-x86.koをrmmodする。(104行目)"
|
||||
msgstr ""
|
||||
|
||||
#: ../../ops.rst:1067
|
||||
msgid "ihk.koをrmmodする。(112行目)"
|
||||
msgstr ""
|
||||
|
||||
#: ../../ops.rst:1069
|
||||
msgid "ihkmondを停止する。(121行目)"
|
||||
msgstr ""
|
||||
|
||||
#: ../../ops.rst:1071
|
||||
msgid "/proc/irq/[n]/affinityの設定をブート時に保存しておいたものに戻し、ブート前の設定でirqbalanceを開始する。(124–135行目)"
|
||||
msgstr ""
|
||||
|
||||
#: ../../ops.rst:1073
|
||||
msgid "Linuxカーネルのスワップアウト積極度の設定をデフォルトの値に戻す。(138行目)"
|
||||
msgstr ""
|
||||
|
||||
#~ msgid "The following OS distributions and platforms are recommended:"
|
||||
#~ msgstr "推奨OSディストリビューションとプロセッサは以下の通り。"
|
||||
|
||||
#~ msgid "OS distribution"
|
||||
#~ msgstr ""
|
||||
|
||||
#~ msgid "CentOS 7.3 or later"
|
||||
#~ msgstr ""
|
||||
|
||||
#~ msgid "RHEL 7.3 or later"
|
||||
#~ msgstr ""
|
||||
|
||||
#~ msgid "Platform"
|
||||
#~ msgstr ""
|
||||
|
||||
#~ msgid "Intel Xeon"
|
||||
#~ msgstr ""
|
||||
|
||||
#~ msgid "Intel Xeon Phi"
|
||||
#~ msgstr ""
|
||||
|
||||
#~ msgid "Fujitsu A64FX"
|
||||
#~ msgstr ""
|
||||
|
||||
#~ msgid "Prepare files for building McKernel"
|
||||
#~ msgstr ""
|
||||
|
||||
#~ msgid ""
|
||||
#~ "Grant read permission to the System.map"
|
||||
#~ " file of your kernel version on "
|
||||
#~ "the build machine:"
|
||||
#~ msgstr ""
|
||||
|
||||
#~ msgid "Install the following packages to the build machine:"
|
||||
#~ msgstr ""
|
||||
|
||||
#~ msgid "When having access to repositories"
|
||||
#~ msgstr ""
|
||||
|
||||
#~ msgid "On RHEL 8, enable the CodeReady Linux Builder (CLB) repository:"
|
||||
#~ msgstr ""
|
||||
|
||||
#~ msgid "On CentOS 8, enable the PowerTools repository:"
|
||||
#~ msgstr ""
|
||||
|
||||
#~ msgid "Install with yum:"
|
||||
#~ msgstr ""
|
||||
|
||||
#~ msgid "When not having access to repositories"
|
||||
#~ msgstr ""
|
||||
|
||||
#~ msgid ""
|
||||
#~ "Ask the system administrator to install"
|
||||
#~ " them. Note that ``libdwarf-devel`` "
|
||||
#~ "is in the CodeReady Linux Builder "
|
||||
#~ "repository on RHEL 8 or in the "
|
||||
#~ "PowerTools repository on CentOS 8."
|
||||
#~ msgstr ""
|
||||
|
||||
#~ msgid "Clone, compile, install"
|
||||
#~ msgstr ""
|
||||
|
||||
#~ msgid "Clone the source code:"
|
||||
#~ msgstr ""
|
||||
|
||||
#~ msgid "(Optional) Checkout to the specific branch or version:"
|
||||
#~ msgstr ""
|
||||
|
||||
#~ msgid ""
|
||||
#~ "Foe example, if you want to try"
|
||||
#~ " the development branch, use “development”"
|
||||
#~ " as the pathspec. If you want "
|
||||
#~ "to try the prerelease version 1.7.0-0.2,"
|
||||
#~ " use “1.7.0-0.2”."
|
||||
#~ msgstr ""
|
||||
|
||||
#~ msgid "Move to build directory:"
|
||||
#~ msgstr ""
|
||||
|
||||
#~ msgid "Run cmake:"
|
||||
#~ msgstr ""
|
||||
|
||||
#~ msgid "When not cross-compiling:"
|
||||
#~ msgstr ""
|
||||
|
||||
#~ msgid "When cross-compiling:"
|
||||
#~ msgstr ""
|
||||
|
||||
#~ msgid "Install with cmake"
|
||||
#~ msgstr ""
|
||||
|
||||
#~ msgid "Install with make:"
|
||||
#~ msgstr ""
|
||||
|
||||
#~ msgid ""
|
||||
#~ "The kernel modules and McKernel kernel"
|
||||
#~ " image should be installed under the"
|
||||
#~ " **ihk+mckernel** folder in your home "
|
||||
#~ "directory."
|
||||
#~ msgstr ""
|
||||
|
||||
#~ msgid "Install with rpm"
|
||||
#~ msgstr ""
|
||||
|
||||
#~ msgid "Create the tarball and the spec file:"
|
||||
#~ msgstr ""
|
||||
|
||||
#~ msgid "Create the rpm package:"
|
||||
#~ msgstr ""
|
||||
|
||||
#~ msgid "Install the rpm package:"
|
||||
#~ msgstr ""
|
||||
|
||||
#~ msgid ""
|
||||
#~ "The kernel modules and McKernel kernel"
|
||||
#~ " image are installed under the "
|
||||
#~ "standard system directories."
|
||||
#~ msgstr ""
|
||||
|
||||
#~ msgid "Prepare files and change settings for installing McKernel"
|
||||
#~ msgstr ""
|
||||
|
||||
#~ msgid "Disable SELinux of the compute nodes:"
|
||||
#~ msgstr ""
|
||||
|
||||
#~ msgid "Change the file to SELINUX=disabled. And then reboot the compute nodes:"
|
||||
#~ msgstr ""
|
||||
|
||||
#~ msgid "Install the following packages to the compute nodes:"
|
||||
#~ msgstr ""
|
||||
|
||||
#~ msgid ""
|
||||
#~ "Ask the system administrator to install"
|
||||
#~ " them. Note that ``libdwarf`` is in"
|
||||
#~ " the CodeReady Linux Builder repository "
|
||||
#~ "on RHEL 8 or in the PowerTools "
|
||||
#~ "repository on CentOS 8."
|
||||
#~ msgstr ""
|
||||
|
||||
458
docs/locales/ja/LC_MESSAGES/quick.po
Normal file
458
docs/locales/ja/LC_MESSAGES/quick.po
Normal file
@ -0,0 +1,458 @@
|
||||
# SOME DESCRIPTIVE TITLE.
|
||||
# Copyright (C) 2020, Masamichi Takagi, Balazs Gerofi, Yutaka Ishikawa
|
||||
# This file is distributed under the same license as the IHK/McKernel
|
||||
# package.
|
||||
# FIRST AUTHOR <EMAIL@ADDRESS>, 2020.
|
||||
#
|
||||
#, fuzzy
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: IHK/McKernel \n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2020-08-04 16:40+0900\n"
|
||||
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
||||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
||||
"Language-Team: LANGUAGE <LL@li.org>\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=utf-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Generated-By: Babel 2.7.0\n"
|
||||
|
||||
#: ../../quick.rst:6
|
||||
msgid "Introduction"
|
||||
msgstr ""
|
||||
|
||||
#: ../../summary.rst:1
|
||||
msgid ""
|
||||
"IHK/McKernel is a light-weight multi-kernel operating system designed for"
|
||||
" high-end supercomputing. It runs Linux and McKernel, a light-weight "
|
||||
"kernel (LWK), side-by-side inside compute nodes and aims at the "
|
||||
"following:"
|
||||
msgstr ""
|
||||
|
||||
#: ../../summary.rst:6
|
||||
msgid ""
|
||||
"Provide scalable and consistent execution of large-scale parallel "
|
||||
"scientific applications, but at the same time maintain the ability to "
|
||||
"rapidly adapt to new hardware features and emerging programming models"
|
||||
msgstr ""
|
||||
|
||||
#: ../../summary.rst:10
|
||||
msgid ""
|
||||
"Provide efficient memory and device management so that resource "
|
||||
"contention and data movement are minimized at the system level"
|
||||
msgstr ""
|
||||
|
||||
#: ../../summary.rst:12
|
||||
msgid ""
|
||||
"Eliminate OS noise by isolating OS services in Linux and provide jitter "
|
||||
"free execution on the LWK"
|
||||
msgstr ""
|
||||
|
||||
#: ../../summary.rst:14
|
||||
msgid ""
|
||||
"Support the full POSIX/Linux APIs by selectively offloading (slow-path) "
|
||||
"system calls to Linux"
|
||||
msgstr ""
|
||||
|
||||
#: ../../background.rst:2
|
||||
msgid "Background and Motivation"
|
||||
msgstr ""
|
||||
|
||||
#: ../../background.rst:4
|
||||
msgid ""
|
||||
"With the growing complexity of high-end supercomputers, the current "
|
||||
"system software stack faces significant challenges as we move forward to "
|
||||
"exascale and beyond. The necessity to deal with extreme degree of "
|
||||
"parallelism, heterogeneous architectures, multiple levels of memory "
|
||||
"hierarchy, power constraints, etc., advocates operating systems that can "
|
||||
"rapidly adapt to new hardware requirements, and that can support novel "
|
||||
"programming paradigms and runtime systems. On the other hand, a new class"
|
||||
" of more dynamic and complex applications are also on the horizon, with "
|
||||
"an increasing demand for application constructs such as in-situ analysis,"
|
||||
" workflows, elaborate monitoring and performance tools. This complexity "
|
||||
"relies not only on the rich features of POSIX, but also on the Linux APIs"
|
||||
" (such as the */proc*, */sys* filesystems, etc.) in particular."
|
||||
msgstr ""
|
||||
|
||||
#: ../../background.rst:19
|
||||
msgid "Two Traditional HPC OS Approaches"
|
||||
msgstr ""
|
||||
|
||||
#: ../../background.rst:21
|
||||
msgid ""
|
||||
"Traditionally, light-weight operating systems specialized for HPC "
|
||||
"followed two approaches to tackle scalable execution of large-scale "
|
||||
"applications. In the full weight kernel (FWK) approach, a full Linux "
|
||||
"environment is taken as the basis, and features that inhibit attaining "
|
||||
"HPC scalability are removed, i.e., making it light-weight. The pure "
|
||||
"light-weight kernel (LWK) approach, on the other hand, starts from "
|
||||
"scratch and effort is undertaken to add sufficient functionality so that "
|
||||
"it provides a familiar API, typically something close to that of a "
|
||||
"general purpose OS, while at the same time it retains the desired "
|
||||
"scalability and reliability attributes. Neither of these approaches "
|
||||
"yields a fully Linux compatible environment."
|
||||
msgstr ""
|
||||
|
||||
#: ../../background.rst:34
|
||||
msgid "The Multi-kernel Approach"
|
||||
msgstr ""
|
||||
|
||||
#: ../../background.rst:36
|
||||
msgid ""
|
||||
"A hybrid approach recognized recently by the system software community is"
|
||||
" to run Linux simultaneously with a lightweight kernel on compute nodes "
|
||||
"and multiple research projects are now pursuing this direction. The basic"
|
||||
" idea is that simulations run on an HPC tailored lightweight kernel, "
|
||||
"ensuring the necessary isolation for noiseless execution of parallel "
|
||||
"applications, but Linux is leveraged so that the full POSIX API is "
|
||||
"supported. Additionally, the small code base of the LWK can also "
|
||||
"facilitate rapid prototyping for new, exotic hardware features. "
|
||||
"Nevertheless, the questions of how to share node resources between the "
|
||||
"two types of kernels, where do device drivers execute, how exactly do the"
|
||||
" two kernels interact with each other and to what extent are they "
|
||||
"integrated, remain subjects of ongoing debate."
|
||||
msgstr ""
|
||||
|
||||
#: ../../archtecture.rst:2
|
||||
msgid "Architectural Overview"
|
||||
msgstr ""
|
||||
|
||||
#: ../../archtecture.rst:4
|
||||
msgid ""
|
||||
"At the heart of the stack is a low-level software infrastructure called "
|
||||
"Interface for Heterogeneous Kernels (IHK). IHK is a general framework "
|
||||
"that provides capabilities for partitioning resources in a many-core "
|
||||
"environment (e.g.,CPU cores and physical memory) and it enables "
|
||||
"management of lightweight kernels. IHK can allocate and release host "
|
||||
"resources dynamically and no reboot of the host machine is required when "
|
||||
"altering configuration. IHK also provides a low-level inter-kernel "
|
||||
"messaging infrastructure, called the Inter-Kernel Communication (IKC) "
|
||||
"layer. An architectural overview of the main system components is shown "
|
||||
"below."
|
||||
msgstr ""
|
||||
|
||||
#: ../../archtecture.rst:18
|
||||
msgid ""
|
||||
"McKernel is a lightweight kernel written from scratch. It is designed for"
|
||||
" HPC and is booted from IHK. McKernel retains a binary compatible ABI "
|
||||
"with Linux, however, it implements only a small set of performance "
|
||||
"sensitive system calls and the rest are offloaded to Linux. Specifically,"
|
||||
" McKernel has its own memory management, it supports processes and multi-"
|
||||
"threading with a simple round-robin cooperative (tick-less) scheduler, "
|
||||
"and it implements signaling. It also allows inter-process memory mappings"
|
||||
" and it provides interfaces to hardware performance counters."
|
||||
msgstr ""
|
||||
|
||||
#: ../../archtecture.rst:29
|
||||
msgid "Functionality"
|
||||
msgstr ""
|
||||
|
||||
#: ../../archtecture.rst:31
|
||||
msgid ""
|
||||
"An overview of some of the principal functionalities of the IHK/McKernel "
|
||||
"stack is provided below."
|
||||
msgstr ""
|
||||
|
||||
#: ../../archtecture.rst:35
|
||||
msgid "System Call Offloading"
|
||||
msgstr ""
|
||||
|
||||
#: ../../archtecture.rst:37
|
||||
msgid ""
|
||||
"System call forwarding in McKernel is implemented as follows. When an "
|
||||
"offloaded system call occurs, McKernel marshals the system call number "
|
||||
"along with its arguments and sends a message to Linux via a dedicated IKC"
|
||||
" channel. The corresponding proxy process running on Linux is by default "
|
||||
"waiting for system call requests through an ioctl() call into IHK’s "
|
||||
"system call delegator kernel module. The delegator kernel module’s IKC "
|
||||
"interrupt handler wakes up the proxy process, which returns to userspace "
|
||||
"and simply invokes the requested system call. Once it obtains the return "
|
||||
"value, it instructs the delegator module to send the result back to "
|
||||
"McKernel, which subsequently passes the value to user-space."
|
||||
msgstr ""
|
||||
|
||||
#: ../../archtecture.rst:49
|
||||
msgid "Unified Address Space"
|
||||
msgstr ""
|
||||
|
||||
#: ../../archtecture.rst:51
|
||||
msgid ""
|
||||
"The unified address space model in IHK/McKernel ensures that offloaded "
|
||||
"system calls can seamlessly resolve arguments even in case of pointers. "
|
||||
"This mechanism is depicted below and is implemented as follows."
|
||||
msgstr ""
|
||||
|
||||
#: ../../archtecture.rst:58
|
||||
msgid ""
|
||||
"First, the proxy process is compiled as a position independent binary, "
|
||||
"which enables us to map the code and data segments specific to the proxy "
|
||||
"process to an address range which is explicitly excluded from McKernel’s "
|
||||
"user space. The grey box on the right side of the figure demonstrates the"
|
||||
" excluded region. Second, the entire valid virtual address range of "
|
||||
"McKernel’s application user-space is covered by a special mapping in the "
|
||||
"proxy process for which we use a pseudo file mapping in Linux. This "
|
||||
"mapping is indicated by the blue box on the left side of the figure."
|
||||
msgstr ""
|
||||
|
||||
#: ../../install.rst:4
|
||||
msgid "Installation"
|
||||
msgstr "インストール"
|
||||
|
||||
#: ../../install.rst:6
|
||||
msgid "The following OS distributions and platforms are recommended:"
|
||||
msgstr "推奨OSディストリビューションとプロセッサは以下の通り。"
|
||||
|
||||
#: ../../install.rst:8
|
||||
msgid "OS distribution"
|
||||
msgstr ""
|
||||
|
||||
#: ../../install.rst:10
|
||||
msgid "CentOS 7.3 or later"
|
||||
msgstr ""
|
||||
|
||||
#: ../../install.rst:11
|
||||
msgid "RHEL 7.3 or later"
|
||||
msgstr ""
|
||||
|
||||
#: ../../install.rst:13
|
||||
msgid "Platform"
|
||||
msgstr ""
|
||||
|
||||
#: ../../install.rst:15
|
||||
msgid "Intel Xeon"
|
||||
msgstr ""
|
||||
|
||||
#: ../../install.rst:16
|
||||
msgid "Intel Xeon Phi"
|
||||
msgstr ""
|
||||
|
||||
#: ../../install.rst:17
|
||||
msgid "Fujitsu A64FX"
|
||||
msgstr ""
|
||||
|
||||
#: ../../install.rst:20
|
||||
msgid "Prepare files for building McKernel"
|
||||
msgstr ""
|
||||
|
||||
#: ../../install.rst:22
|
||||
msgid ""
|
||||
"Grant read permission to the System.map file of your kernel version on "
|
||||
"the build machine:"
|
||||
msgstr ""
|
||||
|
||||
#: ../../install.rst:28
|
||||
msgid "Install the following packages to the build machine:"
|
||||
msgstr ""
|
||||
|
||||
#: ../../install.rst:35 ../../install.rst:179
|
||||
msgid "When having access to repositories"
|
||||
msgstr ""
|
||||
|
||||
#: ../../install.rst:37 ../../install.rst:181
|
||||
msgid "On RHEL 8, enable the CodeReady Linux Builder (CLB) repository:"
|
||||
msgstr ""
|
||||
|
||||
#: ../../install.rst:43 ../../install.rst:187
|
||||
msgid "On CentOS 8, enable the PowerTools repository:"
|
||||
msgstr ""
|
||||
|
||||
#: ../../install.rst:49 ../../install.rst:193
|
||||
msgid "Install with yum:"
|
||||
msgstr ""
|
||||
|
||||
#: ../../install.rst:56 ../../install.rst:200
|
||||
msgid "When not having access to repositories"
|
||||
msgstr ""
|
||||
|
||||
#: ../../install.rst:58
|
||||
msgid ""
|
||||
"Ask the system administrator to install them. Note that ``libdwarf-"
|
||||
"devel`` is in the CodeReady Linux Builder repository on RHEL 8 or in the "
|
||||
"PowerTools repository on CentOS 8."
|
||||
msgstr ""
|
||||
|
||||
#: ../../install.rst:61
|
||||
msgid "Clone, compile, install"
|
||||
msgstr ""
|
||||
|
||||
#: ../../install.rst:63
|
||||
msgid "Clone the source code:"
|
||||
msgstr ""
|
||||
|
||||
#: ../../install.rst:71
|
||||
msgid "(Optional) Checkout to the specific branch or version:"
|
||||
msgstr ""
|
||||
|
||||
#: ../../install.rst:79
|
||||
msgid ""
|
||||
"Foe example, if you want to try the development branch, use “development”"
|
||||
" as the pathspec. If you want to try the prerelease version 1.7.0-0.2, "
|
||||
"use “1.7.0-0.2”."
|
||||
msgstr ""
|
||||
|
||||
#: ../../install.rst:83
|
||||
msgid "Move to build directory:"
|
||||
msgstr ""
|
||||
|
||||
#: ../../install.rst:89
|
||||
msgid "Run cmake:"
|
||||
msgstr ""
|
||||
|
||||
#: ../../install.rst:92 ../../install.rst:135
|
||||
msgid "When not cross-compiling:"
|
||||
msgstr ""
|
||||
|
||||
#: ../../install.rst:99 ../../install.rst:142
|
||||
msgid "When cross-compiling:"
|
||||
msgstr ""
|
||||
|
||||
#: ../../install.rst:111
|
||||
msgid "Install with cmake"
|
||||
msgstr ""
|
||||
|
||||
#: ../../install.rst:113
|
||||
msgid "Install with make:"
|
||||
msgstr ""
|
||||
|
||||
#: ../../install.rst:119
|
||||
msgid ""
|
||||
"The kernel modules and McKernel kernel image should be installed under "
|
||||
"the **ihk+mckernel** folder in your home directory."
|
||||
msgstr ""
|
||||
|
||||
#: ../../install.rst:123
|
||||
msgid "Install with rpm"
|
||||
msgstr ""
|
||||
|
||||
#: ../../install.rst:125
|
||||
msgid "Create the tarball and the spec file:"
|
||||
msgstr ""
|
||||
|
||||
#: ../../install.rst:132
|
||||
msgid "Create the rpm package:"
|
||||
msgstr ""
|
||||
|
||||
#: ../../install.rst:148
|
||||
msgid "Install the rpm package:"
|
||||
msgstr ""
|
||||
|
||||
#: ../../install.rst:154
|
||||
msgid ""
|
||||
"The kernel modules and McKernel kernel image are installed under the "
|
||||
"standard system directories."
|
||||
msgstr ""
|
||||
|
||||
#: ../../install.rst:158
|
||||
msgid "Prepare files and change settings for installing McKernel"
|
||||
msgstr ""
|
||||
|
||||
#: ../../install.rst:160
|
||||
msgid "Disable SELinux of the compute nodes:"
|
||||
msgstr ""
|
||||
|
||||
#: ../../install.rst:166
|
||||
msgid "Change the file to SELINUX=disabled. And then reboot the compute nodes:"
|
||||
msgstr ""
|
||||
|
||||
#: ../../install.rst:172
|
||||
msgid "Install the following packages to the compute nodes:"
|
||||
msgstr ""
|
||||
|
||||
#: ../../install.rst:202
|
||||
msgid ""
|
||||
"Ask the system administrator to install them. Note that ``libdwarf`` is "
|
||||
"in the CodeReady Linux Builder repository on RHEL 8 or in the PowerTools "
|
||||
"repository on CentOS 8."
|
||||
msgstr ""
|
||||
|
||||
#: ../../boot_run_shutdown.rst:2
|
||||
msgid "Boot McKernel"
|
||||
msgstr ""
|
||||
|
||||
#: ../../boot_run_shutdown.rst:4
|
||||
msgid ""
|
||||
"A boot script called ``mcreboot.sh`` is provided under ``sbin`` in the "
|
||||
"install folder. To boot on logical CPU 1 with 512MB of memory, use the "
|
||||
"following invocation:"
|
||||
msgstr ""
|
||||
|
||||
#: ../../boot_run_shutdown.rst:14
|
||||
msgid ""
|
||||
"You should see something similar like this if you display the McKernel’s "
|
||||
"kernel message log:"
|
||||
msgstr ""
|
||||
|
||||
#: ../../boot_run_shutdown.rst:42
|
||||
msgid "Run a simple program on McKernel"
|
||||
msgstr ""
|
||||
|
||||
#: ../../boot_run_shutdown.rst:44
|
||||
msgid ""
|
||||
"The mcexec command line tool (which is also the Linux proxy process) can "
|
||||
"be used for executing applications on McKernel:"
|
||||
msgstr ""
|
||||
|
||||
#: ../../boot_run_shutdown.rst:53
|
||||
msgid "Shutdown McKernel"
|
||||
msgstr ""
|
||||
|
||||
#: ../../boot_run_shutdown.rst:55
|
||||
msgid ""
|
||||
"Finally, to shutdown McKernel and release CPU/memory resources back to "
|
||||
"Linux use the following command:"
|
||||
msgstr ""
|
||||
|
||||
#: ../../team.rst:2
|
||||
msgid "The Team"
|
||||
msgstr ""
|
||||
|
||||
#: ../../team.rst:4
|
||||
msgid ""
|
||||
"The McKernel project was started at The University of Tokyo and currently"
|
||||
" it is mainly developed at RIKEN. Some of our collaborators include:"
|
||||
msgstr ""
|
||||
|
||||
#: ../../team.rst:8
|
||||
msgid "Hitachi"
|
||||
msgstr ""
|
||||
|
||||
#: ../../team.rst:9
|
||||
msgid "Fujitsu"
|
||||
msgstr ""
|
||||
|
||||
#: ../../team.rst:10
|
||||
msgid "CEA (France)"
|
||||
msgstr ""
|
||||
|
||||
#: ../../team.rst:11
|
||||
msgid "NEC"
|
||||
msgstr ""
|
||||
|
||||
#: ../../license.rst:2
|
||||
msgid "License"
|
||||
msgstr ""
|
||||
|
||||
#: ../../license.rst:4
|
||||
msgid "McKernel is GPL licensed, as found in the LICENSE file."
|
||||
msgstr ""
|
||||
|
||||
#: ../../contact.rst:2
|
||||
msgid "Contact"
|
||||
msgstr ""
|
||||
|
||||
#: ../../contact.rst:4
|
||||
msgid ""
|
||||
"Please give your feedback to us via one of the following mailing lists. "
|
||||
"Subscription via `www.pccluster.org "
|
||||
"<http://www.pccluster.org/mailman/listinfo/mckernel-users>`__ is needed."
|
||||
msgstr ""
|
||||
|
||||
#: ../../contact.rst:9
|
||||
msgid "English: mckernel-users@pccluster.org"
|
||||
msgstr ""
|
||||
|
||||
#: ../../contact.rst:10
|
||||
msgid "Japanese: mckernel-users-jp@pccluster.org"
|
||||
msgstr ""
|
||||
|
||||
28
docs/locales/ja/LC_MESSAGES/spec-ihk.po
Normal file
28
docs/locales/ja/LC_MESSAGES/spec-ihk.po
Normal file
@ -0,0 +1,28 @@
|
||||
# SOME DESCRIPTIVE TITLE.
|
||||
# Copyright (C) 2020, Masamichi Takagi, Balazs Gerofi, Yutaka Ishikawa
|
||||
# This file is distributed under the same license as the IHK/McKernel
|
||||
# package.
|
||||
# FIRST AUTHOR <EMAIL@ADDRESS>, 2020.
|
||||
#
|
||||
#, fuzzy
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: IHK/McKernel \n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2020-08-04 16:40+0900\n"
|
||||
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
||||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
||||
"Language-Team: LANGUAGE <LL@li.org>\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=utf-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Generated-By: Babel 2.7.0\n"
|
||||
|
||||
#: ../../spec-ihk.md:1
|
||||
msgid "hi"
|
||||
msgstr ""
|
||||
|
||||
#: ../../spec-ihk.md:3
|
||||
msgid ":download:IHK Spec <ihk.pdf>"
|
||||
msgstr ""
|
||||
|
||||
24
docs/locales/ja/LC_MESSAGES/spec-mckernel.po
Normal file
24
docs/locales/ja/LC_MESSAGES/spec-mckernel.po
Normal file
@ -0,0 +1,24 @@
|
||||
# SOME DESCRIPTIVE TITLE.
|
||||
# Copyright (C) 2020, Masamichi Takagi, Balazs Gerofi, Yutaka Ishikawa
|
||||
# This file is distributed under the same license as the IHK/McKernel
|
||||
# package.
|
||||
# FIRST AUTHOR <EMAIL@ADDRESS>, 2020.
|
||||
#
|
||||
#, fuzzy
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: IHK/McKernel \n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2020-08-04 16:40+0900\n"
|
||||
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
||||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
||||
"Language-Team: LANGUAGE <LL@li.org>\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=utf-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Generated-By: Babel 2.7.0\n"
|
||||
|
||||
#: ../../spec-mckernel.md:1
|
||||
msgid "Hello"
|
||||
msgstr ""
|
||||
|
||||
48
docs/locales/ja/LC_MESSAGES/spec.po
Normal file
48
docs/locales/ja/LC_MESSAGES/spec.po
Normal file
@ -0,0 +1,48 @@
|
||||
# SOME DESCRIPTIVE TITLE.
|
||||
# Copyright (C) 2020, Masamichi Takagi, Balazs Gerofi, Yutaka Ishikawa
|
||||
# This file is distributed under the same license as the IHK/McKernel
|
||||
# package.
|
||||
# FIRST AUTHOR <EMAIL@ADDRESS>, 2020.
|
||||
#
|
||||
#, fuzzy
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: IHK/McKernel \n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2020-08-07 10:00+0900\n"
|
||||
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
||||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
||||
"Language-Team: LANGUAGE <LL@li.org>\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=utf-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Generated-By: Babel 2.7.0\n"
|
||||
|
||||
#: ../../spec/ihk.rst:6
|
||||
msgid "External Specs"
|
||||
msgstr ""
|
||||
|
||||
#: ../../spec/ihk.rst:9
|
||||
msgid "Overview"
|
||||
msgstr ""
|
||||
|
||||
#: ../../spec/ihk.rst:12
|
||||
msgid "Function Specs"
|
||||
msgstr ""
|
||||
|
||||
#: ../../spec/ihk.rst:15
|
||||
msgid "Command / Daemon Specs"
|
||||
msgstr ""
|
||||
|
||||
#: ../../spec/ihk.rst:18
|
||||
msgid "Booting LWK"
|
||||
msgstr ""
|
||||
|
||||
#: ../../spec/mckernel.rst:6
|
||||
msgid "Interfaces"
|
||||
msgstr ""
|
||||
|
||||
#: ../../spec/mckernel.rst:9
|
||||
msgid "Interface details"
|
||||
msgstr ""
|
||||
|
||||
53
docs/locales/ja/LC_MESSAGES/summary.po
Normal file
53
docs/locales/ja/LC_MESSAGES/summary.po
Normal file
@ -0,0 +1,53 @@
|
||||
# SOME DESCRIPTIVE TITLE.
|
||||
# Copyright (C) 2020, Masamichi Takagi, Balazs Gerofi, Yutaka Ishikawa
|
||||
# This file is distributed under the same license as the IHK/McKernel
|
||||
# package.
|
||||
# FIRST AUTHOR <EMAIL@ADDRESS>, 2020.
|
||||
#
|
||||
#, fuzzy
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: IHK/McKernel \n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2020-08-04 16:40+0900\n"
|
||||
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
||||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
||||
"Language-Team: LANGUAGE <LL@li.org>\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=utf-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Generated-By: Babel 2.7.0\n"
|
||||
|
||||
#: ../../summary.rst:1
|
||||
msgid ""
|
||||
"IHK/McKernel is a light-weight multi-kernel operating system designed for"
|
||||
" high-end supercomputing. It runs Linux and McKernel, a light-weight "
|
||||
"kernel (LWK), side-by-side inside compute nodes and aims at the "
|
||||
"following:"
|
||||
msgstr ""
|
||||
|
||||
#: ../../summary.rst:6
|
||||
msgid ""
|
||||
"Provide scalable and consistent execution of large-scale parallel "
|
||||
"scientific applications, but at the same time maintain the ability to "
|
||||
"rapidly adapt to new hardware features and emerging programming models"
|
||||
msgstr ""
|
||||
|
||||
#: ../../summary.rst:10
|
||||
msgid ""
|
||||
"Provide efficient memory and device management so that resource "
|
||||
"contention and data movement are minimized at the system level"
|
||||
msgstr ""
|
||||
|
||||
#: ../../summary.rst:12
|
||||
msgid ""
|
||||
"Eliminate OS noise by isolating OS services in Linux and provide jitter "
|
||||
"free execution on the LWK"
|
||||
msgstr ""
|
||||
|
||||
#: ../../summary.rst:14
|
||||
msgid ""
|
||||
"Support the full POSIX/Linux APIs by selectively offloading (slow-path) "
|
||||
"system calls to Linux"
|
||||
msgstr ""
|
||||
|
||||
46
docs/locales/ja/LC_MESSAGES/team.po
Normal file
46
docs/locales/ja/LC_MESSAGES/team.po
Normal file
@ -0,0 +1,46 @@
|
||||
# SOME DESCRIPTIVE TITLE.
|
||||
# Copyright (C) 2020, Masamichi Takagi, Balazs Gerofi, Yutaka Ishikawa
|
||||
# This file is distributed under the same license as the IHK/McKernel
|
||||
# package.
|
||||
# FIRST AUTHOR <EMAIL@ADDRESS>, 2020.
|
||||
#
|
||||
#, fuzzy
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: IHK/McKernel \n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2020-08-04 16:40+0900\n"
|
||||
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
||||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
||||
"Language-Team: LANGUAGE <LL@li.org>\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=utf-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Generated-By: Babel 2.7.0\n"
|
||||
|
||||
#: ../../team.rst:2
|
||||
msgid "The Team"
|
||||
msgstr ""
|
||||
|
||||
#: ../../team.rst:4
|
||||
msgid ""
|
||||
"The McKernel project was started at The University of Tokyo and currently"
|
||||
" it is mainly developed at RIKEN. Some of our collaborators include:"
|
||||
msgstr ""
|
||||
|
||||
#: ../../team.rst:8
|
||||
msgid "Hitachi"
|
||||
msgstr ""
|
||||
|
||||
#: ../../team.rst:9
|
||||
msgid "Fujitsu"
|
||||
msgstr ""
|
||||
|
||||
#: ../../team.rst:10
|
||||
msgid "CEA (France)"
|
||||
msgstr ""
|
||||
|
||||
#: ../../team.rst:11
|
||||
msgid "NEC"
|
||||
msgstr ""
|
||||
|
||||
454
docs/locales/ja/LC_MESSAGES/users.po
Normal file
454
docs/locales/ja/LC_MESSAGES/users.po
Normal file
@ -0,0 +1,454 @@
|
||||
# SOME DESCRIPTIVE TITLE.
|
||||
# Copyright (C) 2020, Masamichi Takagi, Balazs Gerofi, Yutaka Ishikawa
|
||||
# This file is distributed under the same license as the IHK/McKernel
|
||||
# package.
|
||||
# FIRST AUTHOR <EMAIL@ADDRESS>, 2020.
|
||||
#
|
||||
#, fuzzy
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: IHK/McKernel \n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2020-08-07 10:00+0900\n"
|
||||
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
||||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
||||
"Language-Team: LANGUAGE <LL@li.org>\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=utf-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Generated-By: Babel 2.7.0\n"
|
||||
|
||||
#: ../../users.rst:6
|
||||
msgid "Architectural Overview"
|
||||
msgstr ""
|
||||
|
||||
#: ../../users.rst:8
|
||||
msgid ""
|
||||
"See `Quick Guide -- Architectural Overview <quick.html#architectural-"
|
||||
"overview>`__."
|
||||
msgstr ""
|
||||
|
||||
#: ../../users.rst:11
|
||||
msgid "Running Programs"
|
||||
msgstr ""
|
||||
|
||||
#: ../../users.rst:13
|
||||
msgid ""
|
||||
"You need to check if your application and pre-/post-processing programs "
|
||||
"are suited to run with McKernel. Follow the guide below to choose to run "
|
||||
"the whole on McKernel, or run the whole on Linux, or run pre-/post-"
|
||||
"processing on Linux and the application on McKernel:"
|
||||
msgstr ""
|
||||
|
||||
#: ../../users.rst:16
|
||||
msgid "Application"
|
||||
msgstr ""
|
||||
|
||||
#: ../../users.rst:18
|
||||
msgid ""
|
||||
"Run the whole on Linux if it issues system calls frequently and becoming "
|
||||
"the bottleneck with McKernel. For example, it's better to run on Linux "
|
||||
"those programs performing many file I/O operations."
|
||||
msgstr ""
|
||||
|
||||
#: ../../users.rst:19
|
||||
msgid "Otherwise, run it on McKernel."
|
||||
msgstr ""
|
||||
|
||||
#: ../../users.rst:21
|
||||
msgid "Pre-/Post-processing"
|
||||
msgstr ""
|
||||
|
||||
#: ../../users.rst:23
|
||||
msgid ""
|
||||
"Run it on McKernel if it consumes a large amount of memory or the "
|
||||
"execution time isn't prolonged prohivitively with McKernel. The reason "
|
||||
"for the first condition is that the resource could be limited for Linux "
|
||||
"CPUs in the nodes for McKernel."
|
||||
msgstr ""
|
||||
|
||||
#: ../../users.rst:24
|
||||
msgid "Otherwise, run it on Linux."
|
||||
msgstr ""
|
||||
|
||||
#: ../../users.rst:28
|
||||
msgid "Modify job script"
|
||||
msgstr ""
|
||||
|
||||
#: ../../users.rst:30
|
||||
msgid ""
|
||||
"When using job submission system, you need to modify the job scripts so "
|
||||
"that the job script itself is going to run on Linux. For example, with "
|
||||
"Fujitsu Technical Computing Suite (TCS), you need to specify "
|
||||
"``jobenv=linux`` by inserting the following line into the job script:"
|
||||
msgstr ""
|
||||
|
||||
#: ../../users.rst:38
|
||||
msgid "Insert ``mcexec`` into the command line"
|
||||
msgstr ""
|
||||
|
||||
#: ../../users.rst:40
|
||||
msgid ""
|
||||
"You need to insert ``mcexec`` into the command lines invoking the "
|
||||
"programs that you chose to run on McKernel:"
|
||||
msgstr ""
|
||||
|
||||
#: ../../users.rst:43
|
||||
msgid "Non-MPI programs"
|
||||
msgstr ""
|
||||
|
||||
#: ../../users.rst:45
|
||||
msgid "Insert ``mcexec`` before an executable:"
|
||||
msgstr ""
|
||||
|
||||
#: ../../users.rst:52
|
||||
msgid "MPI programs"
|
||||
msgstr ""
|
||||
|
||||
#: ../../users.rst:54
|
||||
msgid ""
|
||||
"Insert ``mcexec -n <processes-per-node>`` **after mpirun** and before an "
|
||||
"executable:"
|
||||
msgstr ""
|
||||
|
||||
#: ../../users.rst:61
|
||||
msgid ""
|
||||
"``<processes-per-node>`` is the number of the processes per node and "
|
||||
"calculated by (number of MPI processes) / (number of nodes)."
|
||||
msgstr ""
|
||||
|
||||
#: ../../users.rst:64
|
||||
msgid ""
|
||||
"For example, ``<processes-per-node>`` equals to 4 (=32/8) when specifying"
|
||||
" the number of processes and nodes as follows with Fujitsu Technical "
|
||||
"Computing Suite."
|
||||
msgstr ""
|
||||
|
||||
#: ../../users.rst:74
|
||||
msgid "Limitations"
|
||||
msgstr ""
|
||||
|
||||
#: ../../users.rst:76
|
||||
msgid ""
|
||||
"Pseudo devices such as /dev/mem and /dev/zero are not mmap()ed correctly "
|
||||
"even if the mmap() returns a success. An access of their mapping receives"
|
||||
" the SIGSEGV signal."
|
||||
msgstr ""
|
||||
|
||||
#: ../../users.rst:80
|
||||
msgid ""
|
||||
"clone() supports only the following flags. All the other flags cause "
|
||||
"clone() to return error or are simply ignored."
|
||||
msgstr ""
|
||||
|
||||
#: ../../users.rst:83
|
||||
msgid "CLONE_CHILD_CLEARTID"
|
||||
msgstr ""
|
||||
|
||||
#: ../../users.rst:84
|
||||
msgid "CLONE_CHILD_SETTID"
|
||||
msgstr ""
|
||||
|
||||
#: ../../users.rst:85
|
||||
msgid "CLONE_PARENT_SETTID"
|
||||
msgstr ""
|
||||
|
||||
#: ../../users.rst:86
|
||||
msgid "CLONE_SETTLS"
|
||||
msgstr ""
|
||||
|
||||
#: ../../users.rst:87
|
||||
msgid "CLONE_SIGHAND"
|
||||
msgstr ""
|
||||
|
||||
#: ../../users.rst:88
|
||||
msgid "CLONE_VM"
|
||||
msgstr ""
|
||||
|
||||
#: ../../users.rst:90
|
||||
msgid "PAPI has the following restriction."
|
||||
msgstr ""
|
||||
|
||||
#: ../../users.rst:92
|
||||
msgid ""
|
||||
"Number of counters a user can use at the same time is up to the number of"
|
||||
" the physical counters in the processor."
|
||||
msgstr ""
|
||||
|
||||
#: ../../users.rst:95
|
||||
msgid "msync writes back only the modified pages mapped by the calling process."
|
||||
msgstr ""
|
||||
|
||||
#: ../../users.rst:98
|
||||
msgid "The following syscalls always return the ENOSYS error."
|
||||
msgstr ""
|
||||
|
||||
#: ../../users.rst:100
|
||||
msgid "migrate_pages()"
|
||||
msgstr ""
|
||||
|
||||
#: ../../users.rst:101
|
||||
msgid "move_pages()"
|
||||
msgstr ""
|
||||
|
||||
#: ../../users.rst:102
|
||||
msgid "set_robust_list()"
|
||||
msgstr ""
|
||||
|
||||
#: ../../users.rst:104
|
||||
msgid "The following syscalls always return the EOPNOTSUPP error."
|
||||
msgstr ""
|
||||
|
||||
#: ../../users.rst:106
|
||||
msgid "arch_prctl(ARCH_SET_GS)"
|
||||
msgstr ""
|
||||
|
||||
#: ../../users.rst:107
|
||||
msgid "signalfd()"
|
||||
msgstr ""
|
||||
|
||||
#: ../../users.rst:109
|
||||
msgid "signalfd4() returns a fd, but signal is not notified through the fd."
|
||||
msgstr ""
|
||||
|
||||
#: ../../users.rst:111
|
||||
msgid "set_rlimit sets the limit values but they are not enforced."
|
||||
msgstr ""
|
||||
|
||||
#: ../../users.rst:113
|
||||
msgid "Address randomization is not supported."
|
||||
msgstr ""
|
||||
|
||||
#: ../../users.rst:115
|
||||
msgid ""
|
||||
"brk() extends the heap more than requestd when -h (–extend-heap-by=) "
|
||||
"option of mcexec is used with the value larger than 4 KiB. "
|
||||
"syscall_pwrite02 of LTP would fail for this reason. This is because the "
|
||||
"test expects that the end of the heap is set to the same address as the "
|
||||
"argument of sbrk() and expects a segmentation violation occurs when it "
|
||||
"tries to access the memory area right next to the boundary. However, the "
|
||||
"optimization sets the end to a value larger than the requested. "
|
||||
"Therefore, the expected segmentation violation doesn’t occur."
|
||||
msgstr ""
|
||||
|
||||
#: ../../users.rst:125
|
||||
msgid ""
|
||||
"setpriority()/getpriority() won’t work. They might set/get the priority "
|
||||
"of a random mcexec thread. This is because there’s no fixed "
|
||||
"correspondence between a McKernel thread which issues the system call and"
|
||||
" a mcexec thread which handles the offload request."
|
||||
msgstr ""
|
||||
|
||||
#: ../../users.rst:130
|
||||
msgid ""
|
||||
"mbind() can set the policy but it is not used when allocating physical "
|
||||
"pages."
|
||||
msgstr ""
|
||||
|
||||
#: ../../users.rst:133
|
||||
msgid ""
|
||||
"MPOL_F_RELATIVE_NODES and MPOL_INTERLEAVE flags for "
|
||||
"set_mempolicy()/mbind() are not supported."
|
||||
msgstr ""
|
||||
|
||||
#: ../../users.rst:136
|
||||
msgid ""
|
||||
"The MPOL_BIND policy for set_mempolicy()/mbind() works as the same as the"
|
||||
" MPOL_PREFERRED policy. That is, the physical page allocator doesn’t give"
|
||||
" up the allocation when the specified nodes are running out of pages but "
|
||||
"continues to search pages in the other nodes."
|
||||
msgstr ""
|
||||
|
||||
#: ../../users.rst:141
|
||||
msgid ""
|
||||
"Kernel dump on Linux panic requires Linux kernel CentOS-7.4 and later. In"
|
||||
" addition, crash_kexec_post_notifiers kernel argument must be given to "
|
||||
"Linux kernel."
|
||||
msgstr ""
|
||||
|
||||
#: ../../users.rst:145
|
||||
msgid ""
|
||||
"setfsuid()/setfsgid() cannot change the id of the calling thread. "
|
||||
"Instead, it changes that of the mcexec worker thread which takes the "
|
||||
"system-call offload request."
|
||||
msgstr ""
|
||||
|
||||
#: ../../users.rst:149
|
||||
msgid ""
|
||||
"mmap (hugeTLBfs): The physical pages corresponding to a map are released "
|
||||
"when no McKernel process exist. The next map gets fresh physical pages."
|
||||
msgstr ""
|
||||
|
||||
#: ../../users.rst:153
|
||||
msgid "Sticky bit on executable file has no effect."
|
||||
msgstr ""
|
||||
|
||||
#: ../../users.rst:155
|
||||
msgid ""
|
||||
"Linux (RHEL-7 for x86_64) could hang when offlining CPUs in the process "
|
||||
"of booting McKernel due to the Linux bug, found in Linux-3.10 and fixed "
|
||||
"in the later version. One way to circumvent this is to always assign the "
|
||||
"same CPU set to McKernel."
|
||||
msgstr ""
|
||||
|
||||
#: ../../users.rst:160
|
||||
msgid "madvise:"
|
||||
msgstr ""
|
||||
|
||||
#: ../../users.rst:162
|
||||
msgid "MADV_HWPOISON and MADV_SOFT_OFFLINE always returns -EPERM."
|
||||
msgstr ""
|
||||
|
||||
#: ../../users.rst:163
|
||||
msgid "MADV_MERGEABLE and MADV_UNMERGEABLE always returns -EINVAL."
|
||||
msgstr ""
|
||||
|
||||
#: ../../users.rst:164
|
||||
msgid ""
|
||||
"MADV_HUGEPAGE and MADV_NOHUGEPAGE on file map returns -EINVAL except on "
|
||||
"RHEL-8 for aarch64."
|
||||
msgstr ""
|
||||
|
||||
#: ../../users.rst:167
|
||||
msgid ""
|
||||
"brk() and mmap() doesn’t report out-of-memory through its return value. "
|
||||
"Instead, page-fault reports the error."
|
||||
msgstr ""
|
||||
|
||||
#: ../../users.rst:170
|
||||
msgid ""
|
||||
"Anonymous mmap pre-maps requested number of pages when contiguous pages "
|
||||
"are available. Demand paging is used when not available."
|
||||
msgstr ""
|
||||
|
||||
#: ../../users.rst:173
|
||||
msgid ""
|
||||
"Mixing page sizes in anonymous shared mapping is not allowed. mmap "
|
||||
"creates vm_range with one page size. And munmap or mremap that needs the "
|
||||
"reduced page size changes the sizes of all the pages of the vm_range."
|
||||
msgstr ""
|
||||
|
||||
#: ../../users.rst:178
|
||||
msgid ""
|
||||
"ihk_os_getperfevent() could time-out when invoked from Fujitsu TCS (job-"
|
||||
"scheduler)."
|
||||
msgstr ""
|
||||
|
||||
#: ../../users.rst:181
|
||||
msgid ""
|
||||
"The behaviors of madvise and mbind are changed to do nothing and report "
|
||||
"success as a workaround for Fugaku."
|
||||
msgstr ""
|
||||
|
||||
#: ../../users.rst:184
|
||||
msgid ""
|
||||
"mmap() allows unlimited overcommit. Note that it corresponds to setting "
|
||||
"sysctl ``vm.overcommit_memory`` to 1."
|
||||
msgstr ""
|
||||
|
||||
#~ msgid ""
|
||||
#~ "At the heart of the stack is "
|
||||
#~ "a low-level software infrastructure "
|
||||
#~ "called Interface for Heterogeneous Kernels "
|
||||
#~ "(IHK). IHK is a general framework "
|
||||
#~ "that provides capabilities for partitioning"
|
||||
#~ " resources in a many-core environment"
|
||||
#~ " (e.g.,CPU cores and physical memory) "
|
||||
#~ "and it enables management of lightweight"
|
||||
#~ " kernels. IHK can allocate and "
|
||||
#~ "release host resources dynamically and "
|
||||
#~ "no reboot of the host machine is"
|
||||
#~ " required when altering configuration. IHK"
|
||||
#~ " also provides a low-level inter-"
|
||||
#~ "kernel messaging infrastructure, called the"
|
||||
#~ " Inter-Kernel Communication (IKC) layer."
|
||||
#~ " An architectural overview of the "
|
||||
#~ "main system components is shown below."
|
||||
#~ msgstr ""
|
||||
|
||||
#~ msgid ""
|
||||
#~ "McKernel is a lightweight kernel written"
|
||||
#~ " from scratch. It is designed for "
|
||||
#~ "HPC and is booted from IHK. "
|
||||
#~ "McKernel retains a binary compatible ABI"
|
||||
#~ " with Linux, however, it implements "
|
||||
#~ "only a small set of performance "
|
||||
#~ "sensitive system calls and the rest "
|
||||
#~ "are offloaded to Linux. Specifically, "
|
||||
#~ "McKernel has its own memory management,"
|
||||
#~ " it supports processes and multi-"
|
||||
#~ "threading with a simple round-robin "
|
||||
#~ "cooperative (tick-less) scheduler, and "
|
||||
#~ "it implements signaling. It also allows"
|
||||
#~ " inter-process memory mappings and it"
|
||||
#~ " provides interfaces to hardware "
|
||||
#~ "performance counters."
|
||||
#~ msgstr ""
|
||||
|
||||
#~ msgid "Functionality"
|
||||
#~ msgstr ""
|
||||
|
||||
#~ msgid ""
|
||||
#~ "An overview of some of the "
|
||||
#~ "principal functionalities of the IHK/McKernel"
|
||||
#~ " stack is provided below."
|
||||
#~ msgstr ""
|
||||
|
||||
#~ msgid "System Call Offloading"
|
||||
#~ msgstr ""
|
||||
|
||||
#~ msgid ""
|
||||
#~ "System call forwarding in McKernel is"
|
||||
#~ " implemented as follows. When an "
|
||||
#~ "offloaded system call occurs, McKernel "
|
||||
#~ "marshals the system call number along"
|
||||
#~ " with its arguments and sends a "
|
||||
#~ "message to Linux via a dedicated "
|
||||
#~ "IKC channel. The corresponding proxy "
|
||||
#~ "process running on Linux is by "
|
||||
#~ "default waiting for system call requests"
|
||||
#~ " through an ioctl() call into IHK’s"
|
||||
#~ " system call delegator kernel module. "
|
||||
#~ "The delegator kernel module’s IKC "
|
||||
#~ "interrupt handler wakes up the proxy "
|
||||
#~ "process, which returns to userspace and"
|
||||
#~ " simply invokes the requested system "
|
||||
#~ "call. Once it obtains the return "
|
||||
#~ "value, it instructs the delegator module"
|
||||
#~ " to send the result back to "
|
||||
#~ "McKernel, which subsequently passes the "
|
||||
#~ "value to user-space."
|
||||
#~ msgstr ""
|
||||
|
||||
#~ msgid "Unified Address Space"
|
||||
#~ msgstr ""
|
||||
|
||||
#~ msgid ""
|
||||
#~ "The unified address space model in "
|
||||
#~ "IHK/McKernel ensures that offloaded system "
|
||||
#~ "calls can seamlessly resolve arguments "
|
||||
#~ "even in case of pointers. This "
|
||||
#~ "mechanism is depicted below and is "
|
||||
#~ "implemented as follows."
|
||||
#~ msgstr ""
|
||||
|
||||
#~ msgid ""
|
||||
#~ "First, the proxy process is compiled "
|
||||
#~ "as a position independent binary, which"
|
||||
#~ " enables us to map the code and"
|
||||
#~ " data segments specific to the proxy"
|
||||
#~ " process to an address range which"
|
||||
#~ " is explicitly excluded from McKernel’s "
|
||||
#~ "user space. The grey box on the"
|
||||
#~ " right side of the figure "
|
||||
#~ "demonstrates the excluded region. Second, "
|
||||
#~ "the entire valid virtual address range"
|
||||
#~ " of McKernel’s application user-space "
|
||||
#~ "is covered by a special mapping in"
|
||||
#~ " the proxy process for which we "
|
||||
#~ "use a pseudo file mapping in "
|
||||
#~ "Linux. This mapping is indicated by "
|
||||
#~ "the blue box on the left side "
|
||||
#~ "of the figure."
|
||||
#~ msgstr ""
|
||||
|
||||
94
docs/locales/ja/LC_MESSAGES/uti.po
Normal file
94
docs/locales/ja/LC_MESSAGES/uti.po
Normal file
@ -0,0 +1,94 @@
|
||||
# SOME DESCRIPTIVE TITLE.
|
||||
# Copyright (C) 2020, Masamichi Takagi, Balazs Gerofi, Yutaka Ishikawa
|
||||
# This file is distributed under the same license as the IHK/McKernel
|
||||
# package.
|
||||
# FIRST AUTHOR <EMAIL@ADDRESS>, 2020.
|
||||
#
|
||||
#, fuzzy
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: IHK/McKernel \n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2020-08-04 16:40+0900\n"
|
||||
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
||||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
||||
"Language-Team: LANGUAGE <LL@li.org>\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=utf-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Generated-By: Babel 2.7.0\n"
|
||||
|
||||
#: ../../uti.rst:2
|
||||
msgid "Advanced: Enable Utility Thread offloading Interface (UTI)"
|
||||
msgstr ""
|
||||
|
||||
#: ../../uti.rst:4
|
||||
msgid ""
|
||||
"UTI enables a runtime such as MPI runtime to spawn utility threads such "
|
||||
"as MPI asynchronous progress threads to Linux cores."
|
||||
msgstr ""
|
||||
|
||||
#: ../../uti.rst:8
|
||||
msgid "Install capstone"
|
||||
msgstr ""
|
||||
|
||||
#: ../../uti.rst:11 ../../uti.rst:22
|
||||
msgid "When compute nodes don't have access to repositories"
|
||||
msgstr ""
|
||||
|
||||
#: ../../uti.rst:13
|
||||
msgid "Install EPEL capstone-devel:"
|
||||
msgstr ""
|
||||
|
||||
#: ../../uti.rst:24
|
||||
msgid ""
|
||||
"Ask the system administrator to install ``capstone-devel``. Note that it "
|
||||
"is in the EPEL repository."
|
||||
msgstr ""
|
||||
|
||||
#: ../../uti.rst:28
|
||||
msgid "Install syscall_intercept"
|
||||
msgstr ""
|
||||
|
||||
#: ../../uti.rst:37
|
||||
msgid "Install UTI for McKernel"
|
||||
msgstr ""
|
||||
|
||||
#: ../../uti.rst:39
|
||||
msgid "Install:"
|
||||
msgstr ""
|
||||
|
||||
#: ../../uti.rst:49
|
||||
msgid "Install McKernel"
|
||||
msgstr ""
|
||||
|
||||
#: ../../uti.rst:51
|
||||
msgid "Add ``-DENABLE_UTI=ON`` option to ``cmake``:"
|
||||
msgstr ""
|
||||
|
||||
#: ../../uti.rst:58
|
||||
msgid "Run programs"
|
||||
msgstr ""
|
||||
|
||||
#: ../../uti.rst:60
|
||||
msgid "Add ``--enable-uti`` option to ``mcexec``:"
|
||||
msgstr ""
|
||||
|
||||
#: ../../uti.rst:67
|
||||
msgid "Install UTI for Linux"
|
||||
msgstr ""
|
||||
|
||||
#: ../../uti.rst:69
|
||||
msgid ""
|
||||
"You should skip this step if it's already installed as with, for example,"
|
||||
" Fujitsu Technical Computing Suite."
|
||||
msgstr ""
|
||||
|
||||
#: ../../uti.rst:72
|
||||
msgid "Install by make"
|
||||
msgstr ""
|
||||
|
||||
#: ../../uti.rst:82
|
||||
msgid "Install by rpm"
|
||||
msgstr ""
|
||||
|
||||
1
docs/logo.rst
Normal file
1
docs/logo.rst
Normal file
@ -0,0 +1 @@
|
||||
.. figure:: mckernel-logo.png
|
||||
BIN
docs/mckernel-logo.png
Normal file
BIN
docs/mckernel-logo.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 68 KiB |
BIN
docs/mckernel.pdf
Normal file
BIN
docs/mckernel.pdf
Normal file
Binary file not shown.
BIN
docs/mckernel.png
Normal file
BIN
docs/mckernel.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 140 KiB |
9
docs/mckernel_developers.rst
Normal file
9
docs/mckernel_developers.rst
Normal file
@ -0,0 +1,9 @@
|
||||
.. sectnum::
|
||||
:suffix: .
|
||||
:depth: 3
|
||||
|
||||
Interfaces
|
||||
==========
|
||||
|
||||
Interface details
|
||||
=================
|
||||
1071
docs/operators.rst
Normal file
1071
docs/operators.rst
Normal file
File diff suppressed because it is too large
Load Diff
22
docs/quick.rst
Normal file
22
docs/quick.rst
Normal file
@ -0,0 +1,22 @@
|
||||
.. sectnum::
|
||||
:suffix: .
|
||||
:depth: 3
|
||||
|
||||
Introduction
|
||||
============
|
||||
|
||||
.. include:: summary.rst
|
||||
|
||||
.. include:: background.rst
|
||||
|
||||
.. include:: archtecture.rst
|
||||
|
||||
.. include:: install.rst
|
||||
|
||||
.. include:: boot_run_shutdown.rst
|
||||
|
||||
.. include:: team.rst
|
||||
|
||||
.. include:: license.rst
|
||||
|
||||
.. include:: contact.rst
|
||||
30
docs/requirements.txt
Normal file
30
docs/requirements.txt
Normal file
@ -0,0 +1,30 @@
|
||||
alabaster==0.7.12
|
||||
attrs==19.3.0
|
||||
Babel==2.7.0
|
||||
certifi==2019.11.28
|
||||
chardet==3.0.4
|
||||
commonmark==0.9.1
|
||||
docutils==0.15
|
||||
idna==2.8
|
||||
imagesize==1.1.0
|
||||
Jinja2==2.10.3
|
||||
MarkupSafe==1.1.1
|
||||
mistune==0.8.4
|
||||
packaging==19.2
|
||||
Pygments==2.5.2
|
||||
pyparsing==2.4.5
|
||||
pytz==2019.3
|
||||
recommonmark==0.6.0
|
||||
requests==2.22.0
|
||||
roman==3.2
|
||||
six==1.13.0
|
||||
snowballstemmer==2.0.0
|
||||
Sphinx==2.2.2
|
||||
sphinx-rtd-theme==0.5.0
|
||||
sphinxcontrib-applehelp==1.0.1
|
||||
sphinxcontrib-devhelp==1.0.1
|
||||
sphinxcontrib-htmlhelp==1.0.2
|
||||
sphinxcontrib-jsmath==1.0.1
|
||||
sphinxcontrib-qthelp==1.0.2
|
||||
sphinxcontrib-serializinghtml==1.1.3
|
||||
urllib3==1.25.7
|
||||
3
docs/spec-ihk.md
Normal file
3
docs/spec-ihk.md
Normal file
@ -0,0 +1,3 @@
|
||||
## hi
|
||||
|
||||
:download:`IHK Spec <ihk.pdf>`
|
||||
1
docs/spec-mckernel.md
Normal file
1
docs/spec-mckernel.md
Normal file
@ -0,0 +1 @@
|
||||
## Hello
|
||||
18
docs/spec/ihk.rst
Normal file
18
docs/spec/ihk.rst
Normal file
@ -0,0 +1,18 @@
|
||||
.. sectnum::
|
||||
:suffix: .
|
||||
:depth: 3
|
||||
|
||||
External Specs
|
||||
==============
|
||||
|
||||
Overview
|
||||
--------
|
||||
|
||||
Function Specs
|
||||
--------------
|
||||
|
||||
Command / Daemon Specs
|
||||
----------------------
|
||||
|
||||
Booting LWK
|
||||
===========
|
||||
9
docs/spec/mckernel.rst
Normal file
9
docs/spec/mckernel.rst
Normal file
@ -0,0 +1,9 @@
|
||||
.. sectnum::
|
||||
:suffix: .
|
||||
:depth: 3
|
||||
|
||||
Interfaces
|
||||
==========
|
||||
|
||||
Interface details
|
||||
=================
|
||||
15
docs/summary.rst
Normal file
15
docs/summary.rst
Normal file
@ -0,0 +1,15 @@
|
||||
IHK/McKernel is a light-weight multi-kernel operating system designed
|
||||
for high-end supercomputing. It runs Linux and McKernel, a light-weight
|
||||
kernel (LWK), side-by-side inside compute nodes and aims at the
|
||||
following:
|
||||
|
||||
- Provide scalable and consistent execution of large-scale parallel
|
||||
scientific applications, but at the same time maintain the ability to
|
||||
rapidly adapt to new hardware features and emerging programming
|
||||
models
|
||||
- Provide efficient memory and device management so that resource
|
||||
contention and data movement are minimized at the system level
|
||||
- Eliminate OS noise by isolating OS services in Linux and provide
|
||||
jitter free execution on the LWK
|
||||
- Support the full POSIX/Linux APIs by selectively offloading
|
||||
(slow-path) system calls to Linux
|
||||
12
docs/team.rst
Normal file
12
docs/team.rst
Normal file
@ -0,0 +1,12 @@
|
||||
The Team
|
||||
========
|
||||
|
||||
The McKernel project was started at The University of Tokyo and
|
||||
currently it is mainly developed at RIKEN. Some of our collaborators
|
||||
include:
|
||||
|
||||
- Hitachi
|
||||
- Fujitsu
|
||||
- CEA (France)
|
||||
- NEC
|
||||
|
||||
BIN
docs/unified_address_space_en.png
Normal file
BIN
docs/unified_address_space_en.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 134 KiB |
191
docs/users.rst
Normal file
191
docs/users.rst
Normal file
@ -0,0 +1,191 @@
|
||||
.. sectnum::
|
||||
:suffix: .
|
||||
:depth: 3
|
||||
|
||||
Architectural Overview
|
||||
======================
|
||||
|
||||
See `Quick Guide -- Architectural Overview <quick.html#architectural-overview>`__.
|
||||
|
||||
Running Programs
|
||||
================
|
||||
|
||||
You need to check if your application and pre-/post-processing programs are suited to run with McKernel.
|
||||
Follow the guide below to choose to run the whole on McKernel, or run the whole on Linux, or run pre-/post-processing on Linux and the application on McKernel:
|
||||
|
||||
* Application
|
||||
|
||||
- Run the whole on Linux if it issues system calls frequently and becoming the bottleneck with McKernel, e.g., those performing many file I/O operations.
|
||||
- Otherwise, run it on McKernel.
|
||||
|
||||
* Pre-/Post-processing
|
||||
|
||||
- Run it on McKernel if it consumes a large amount of memory or the execution time isn't prolonged prohivitively with McKernel. The reason for the first condition is that the resource could be limited for Linux CPUs in the nodes for McKernel.
|
||||
- Otherwise, run it on Linux.
|
||||
|
||||
|
||||
Modify job script
|
||||
-----------------
|
||||
|
||||
When using job submission system, you need to modify the job scripts so that the job script itself is going to run on Linux.
|
||||
For example, with Fujitsu Technical Computing Suite (TCS), you need to specify ``jobenv=mck1`` by inserting the following line into the job script:
|
||||
|
||||
.. code-block:: none
|
||||
|
||||
#PJM -L jobenv=mck1
|
||||
|
||||
Insert ``mcexec`` into the command line
|
||||
---------------------------------------
|
||||
|
||||
You need to insert ``mcexec`` into the command lines invoking the programs that you chose to run on McKernel:
|
||||
|
||||
Non-MPI programs
|
||||
~~~~~~~~~~~~~~~~
|
||||
|
||||
Insert ``mcexec`` before an executable:
|
||||
|
||||
::
|
||||
|
||||
mcexec ./a.out
|
||||
|
||||
MPI programs
|
||||
~~~~~~~~~~~~
|
||||
|
||||
Insert ``mcexec -n <processes-per-node>`` **after mpirun** and before an
|
||||
executable:
|
||||
|
||||
::
|
||||
|
||||
mpirun -n <number-of-MPI-processes> mcexec -n <processes-per-node> ./a.out
|
||||
|
||||
``<processes-per-node>`` is the number of the processes per node and
|
||||
calculated by (number of MPI processes) / (number of nodes).
|
||||
|
||||
For example, ``<processes-per-node>`` equals to 4 (=32/8) when
|
||||
specifying the number of processes and nodes as follows with
|
||||
Fujitsu Technical Computing Suite.
|
||||
|
||||
.. code-block:: none
|
||||
|
||||
#PJM --mpi "proc=32"
|
||||
#PJM -L "node=8"
|
||||
|
||||
Limitations
|
||||
===========
|
||||
|
||||
1. Pseudo devices such as /dev/mem and /dev/zero are not mmap()ed
|
||||
correctly even if the mmap() returns a success. An access of their
|
||||
mapping receives the SIGSEGV signal.
|
||||
|
||||
2. clone() supports only the following flags. All the other flags cause
|
||||
clone() to return error or are simply ignored.
|
||||
|
||||
- CLONE_CHILD_CLEARTID
|
||||
- CLONE_CHILD_SETTID
|
||||
- CLONE_PARENT_SETTID
|
||||
- CLONE_SETTLS
|
||||
- CLONE_SIGHAND
|
||||
- CLONE_VM
|
||||
|
||||
3. PAPI has the following restriction.
|
||||
|
||||
- Number of counters a user can use at the same time is up to the
|
||||
number of the physical counters in the processor.
|
||||
|
||||
4. msync writes back only the modified pages mapped by the calling
|
||||
process.
|
||||
|
||||
5. The following syscalls always return the ENOSYS error.
|
||||
|
||||
- migrate_pages()
|
||||
- move_pages()
|
||||
- set_robust_list()
|
||||
|
||||
6. The following syscalls always return the EOPNOTSUPP error.
|
||||
|
||||
- arch_prctl(ARCH_SET_GS)
|
||||
- signalfd()
|
||||
|
||||
7. signalfd4() returns a fd, but signal is not notified through the fd.
|
||||
|
||||
8. set_rlimit sets the limit values but they are not enforced.
|
||||
|
||||
9. Address randomization is not supported.
|
||||
|
||||
10. brk() extends the heap more than requestd when -h (–extend-heap-by=)
|
||||
option of mcexec is used with the value larger than 4 KiB.
|
||||
syscall_pwrite02 of LTP would fail for this reason. This is because
|
||||
the test expects that the end of the heap is set to the same address
|
||||
as the argument of sbrk() and expects a segmentation violation
|
||||
occurs when it tries to access the memory area right next to the
|
||||
boundary. However, the optimization sets the end to a value larger
|
||||
than the requested. Therefore, the expected segmentation violation
|
||||
doesn’t occur.
|
||||
|
||||
11. setpriority()/getpriority() won’t work. They might set/get the
|
||||
priority of a random mcexec thread. This is because there’s no fixed
|
||||
correspondence between a McKernel thread which issues the system
|
||||
call and a mcexec thread which handles the offload request.
|
||||
|
||||
12. mbind() can set the policy but it is not used when allocating
|
||||
physical pages.
|
||||
|
||||
13. MPOL_F_RELATIVE_NODES and MPOL_INTERLEAVE flags for
|
||||
set_mempolicy()/mbind() are not supported.
|
||||
|
||||
14. The MPOL_BIND policy for set_mempolicy()/mbind() works as the same
|
||||
as the MPOL_PREFERRED policy. That is, the physical page allocator
|
||||
doesn’t give up the allocation when the specified nodes are running
|
||||
out of pages but continues to search pages in the other nodes.
|
||||
|
||||
15. Kernel dump on Linux panic requires Linux kernel CentOS-7.4 and
|
||||
later. In addition, crash_kexec_post_notifiers kernel argument must
|
||||
be given to Linux kernel.
|
||||
|
||||
16. setfsuid()/setfsgid() cannot change the id of the calling thread.
|
||||
Instead, it changes that of the mcexec worker thread which takes the
|
||||
system-call offload request.
|
||||
|
||||
17. mmap (hugeTLBfs): The physical pages corresponding to a map are
|
||||
released when no McKernel process exist. The next map gets fresh
|
||||
physical pages.
|
||||
|
||||
18. Sticky bit on executable file has no effect.
|
||||
|
||||
19. Linux (RHEL-7 for x86_64) could hang when offlining CPUs in the
|
||||
process of booting McKernel due to the Linux bug, found in
|
||||
Linux-3.10 and fixed in the later version. One way to circumvent
|
||||
this is to always assign the same CPU set to McKernel.
|
||||
|
||||
20. madvise:
|
||||
|
||||
- MADV_HWPOISON and MADV_SOFT_OFFLINE always returns -EPERM.
|
||||
- MADV_MERGEABLE and MADV_UNMERGEABLE always returns -EINVAL.
|
||||
- MADV_HUGEPAGE and MADV_NOHUGEPAGE on file map returns -EINVAL
|
||||
except on RHEL-8 for aarch64.
|
||||
|
||||
21. brk() and mmap() doesn’t report out-of-memory through its return
|
||||
value. Instead, page-fault reports the error.
|
||||
|
||||
22. Anonymous mmap pre-maps requested number of pages when contiguous
|
||||
pages are available. Demand paging is used when not available.
|
||||
|
||||
23. Mixing page sizes in anonymous shared mapping is not allowed. mmap
|
||||
creates vm_range with one page size. And munmap or mremap that needs
|
||||
the reduced page size changes the sizes of all the pages of the
|
||||
vm_range.
|
||||
|
||||
24. ihk_os_getperfevent() could time-out when invoked from Fujitsu TCS
|
||||
(job-scheduler).
|
||||
|
||||
25. The behaviors of madvise and mbind are changed to do nothing and
|
||||
report success as a workaround for Fugaku.
|
||||
|
||||
26. mmap() allows unlimited overcommit. Note that it corresponds to
|
||||
setting sysctl ``vm.overcommit_memory`` to 1.
|
||||
|
||||
27. mlockall() is not supported and returns -EPERM.
|
||||
|
||||
28. munlockall() is not supported and returns zero.
|
||||
|
||||
29. scheduling behavior is not Linux compatible. For example, sometimes one of the two processes on the same CPU continues to run after yielding.
|
||||
91
docs/uti.rst
Normal file
91
docs/uti.rst
Normal file
@ -0,0 +1,91 @@
|
||||
Advanced: Enable Utility Thread offloading Interface (UTI)
|
||||
-------------------------------------------------------------
|
||||
|
||||
UTI enables a runtime such as MPI runtime to spawn utility threads such
|
||||
as MPI asynchronous progress threads to Linux cores.
|
||||
|
||||
Install capstone
|
||||
~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
When compute nodes don't have access to repositories
|
||||
""""""""""""""""""""""""""""""""""""""""""""""""""""
|
||||
|
||||
Install EPEL capstone-devel:
|
||||
|
||||
::
|
||||
|
||||
sudo yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm
|
||||
sudo yum install capstone-devel
|
||||
|
||||
|
||||
When compute nodes don't have access to repositories
|
||||
""""""""""""""""""""""""""""""""""""""""""""""""""""
|
||||
|
||||
Ask the system administrator to install ``capstone-devel``. Note that it is in the EPEL repository.
|
||||
|
||||
|
||||
Install syscall_intercept
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
::
|
||||
|
||||
git clone https://github.com/RIKEN-SysSoft/syscall_intercept.git
|
||||
mkdir build && cd build
|
||||
cmake <syscall_intercept>/arch/aarch64 -DCMAKE_INSTALL_PREFIX=<syscall-intercept-install> -DCMAKE_BUILD_TYPE=Release -DCMAKE_C_COMPILER=gcc -DTREAT_WARNINGS_AS_ERRORS=OFF
|
||||
|
||||
Install UTI for McKernel
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
Install:
|
||||
|
||||
.. code-block:: none
|
||||
|
||||
git clone https://github.com/RIKEN-SysSoft/uti.git
|
||||
mkdir build && cd build
|
||||
../uti/configure --prefix=<mckernel-install> --with-rm=mckernel
|
||||
make && make install
|
||||
|
||||
Install McKernel
|
||||
~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
Add ``-DENABLE_UTI=ON`` option to ``cmake``:
|
||||
|
||||
::
|
||||
|
||||
CMAKE_PREFIX_PATH=<syscall-intercept-install> cmake -DCMAKE_INSTALL_PREFIX=${HOME}/ihk+mckernel -DENABLE_UTI=ON $HOME/src/ihk+mckernel/mckernel
|
||||
|
||||
Run programs
|
||||
~~~~~~~~~~~~~~~~
|
||||
|
||||
Add ``--enable-uti`` option to ``mcexec``:
|
||||
|
||||
::
|
||||
|
||||
mcexec --enable-uti <command>
|
||||
|
||||
Install UTI for Linux
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
You should skip this step if it's already installed as with, for example, Fujitsu Technical Computing Suite.
|
||||
|
||||
Install by make
|
||||
"""""""""""""""
|
||||
|
||||
.. code-block:: none
|
||||
|
||||
git clone https://github.com/RIKEN-SysSoft/uti.git
|
||||
mkdir build && cd build
|
||||
../uti/configure --prefix=<uti-install> --with-rm=linux
|
||||
make && make install
|
||||
|
||||
Install by rpm
|
||||
""""""""""""""
|
||||
|
||||
.. code-block:: none
|
||||
|
||||
git clone https://github.com/RIKEN-SysSoft/uti.git
|
||||
mkdir build && cd build
|
||||
../uti/configure --prefix=<uti-install> --with-rm=linux
|
||||
rm -f ~/rpmbuild/SOURCES/<version>.tar.gz
|
||||
rpmbuild -ba ./scripts/uti.spec
|
||||
rpm -Uvh uti-<version>-<release>-<arch>.rpm
|
||||
@ -4671,7 +4671,7 @@ void cmd_ipcs(void); /* ipcs.c */
|
||||
/*
|
||||
* main.c
|
||||
*/
|
||||
void main_loop(void);
|
||||
//void main_loop(void);
|
||||
void exec_command(void);
|
||||
struct command_table_entry *get_command_table_entry(char *);
|
||||
void program_usage(int);
|
||||
|
||||
@ -113,6 +113,18 @@ typedef unsigned long __cpu_set_unit;
|
||||
#define MPOL_NO_BSS 0x04
|
||||
#define MPOL_SHM_PREMAP 0x08
|
||||
|
||||
/* should be the same as process.h */
|
||||
#define PLD_PROCESS_NUMA_MASK_BITS 256
|
||||
|
||||
enum {
|
||||
PLD_MPOL_DEFAULT,
|
||||
PLD_MPOL_PREFERRED,
|
||||
PLD_MPOL_BIND,
|
||||
PLD_MPOL_INTERLEAVE,
|
||||
PLD_MPOL_LOCAL,
|
||||
PLD_MPOL_MAX, /* always last member of enum */
|
||||
};
|
||||
|
||||
#define PLD_MAGIC 0xcafecafe44332211UL
|
||||
|
||||
struct program_load_desc {
|
||||
@ -147,9 +159,18 @@ struct program_load_desc {
|
||||
unsigned long heap_extension;
|
||||
long stack_premap;
|
||||
unsigned long mpol_bind_mask;
|
||||
int mpol_mode;
|
||||
unsigned long mpol_nodemask[PLD_PROCESS_NUMA_MASK_BITS /
|
||||
(sizeof(unsigned long) * 8)];
|
||||
|
||||
int thp_disable;
|
||||
int uti_thread_rank; /* N-th clone() spawns a thread on Linux CPU */
|
||||
int uti_use_last_cpu; /* Work-around not to share CPU with OpenMP thread */
|
||||
int straight_map;
|
||||
size_t straight_map_threshold;
|
||||
#ifdef ENABLE_TOFU
|
||||
int enable_tofu;
|
||||
#endif
|
||||
int nr_processes;
|
||||
int process_rank;
|
||||
__cpu_set_unit cpu_set[PLD_CPU_SET_SIZE];
|
||||
@ -196,6 +217,9 @@ struct syscall_response {
|
||||
unsigned long req_thread_status;
|
||||
long ret;
|
||||
unsigned long fault_address;
|
||||
#ifdef ENABLE_TOFU
|
||||
void *pde_data;
|
||||
#endif
|
||||
};
|
||||
|
||||
struct syscall_ret_desc {
|
||||
|
||||
@ -2,6 +2,7 @@
|
||||
#include <linux/version.h>
|
||||
#include <linux/mm_types.h>
|
||||
#include <linux/kallsyms.h>
|
||||
#include <linux/delay.h>
|
||||
#if KERNEL_VERSION(4, 11, 0) <= LINUX_VERSION_CODE
|
||||
#include <linux/sched/task_stack.h>
|
||||
#endif /* LINUX_VERSION_CODE >= KERNEL_VERSION(4, 11, 0) */
|
||||
@ -27,6 +28,16 @@ void *vdso_end;
|
||||
static struct vm_special_mapping (*vdso_spec)[2];
|
||||
#endif
|
||||
|
||||
#ifdef ENABLE_TOFU
|
||||
/* Tofu CQ and barrier gate release functions */
|
||||
struct file_operations *mcctrl_tof_utofu_procfs_ops_cq;
|
||||
int (*mcctrl_tof_utofu_release_cq)(struct inode *inode,
|
||||
struct file *filp);
|
||||
struct file_operations *mcctrl_tof_utofu_procfs_ops_bch;
|
||||
int (*mcctrl_tof_utofu_release_bch)(struct inode *inode,
|
||||
struct file *filp);
|
||||
#endif
|
||||
|
||||
int arch_symbols_init(void)
|
||||
{
|
||||
#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 0, 0)
|
||||
@ -43,6 +54,28 @@ int arch_symbols_init(void)
|
||||
return -EFAULT;
|
||||
#endif
|
||||
|
||||
#ifdef ENABLE_TOFU
|
||||
mcctrl_tof_utofu_procfs_ops_cq =
|
||||
(void *)kallsyms_lookup_name("tof_utofu_procfs_ops_cq");
|
||||
if (WARN_ON(!mcctrl_tof_utofu_procfs_ops_cq))
|
||||
return -EFAULT;
|
||||
|
||||
mcctrl_tof_utofu_procfs_ops_bch =
|
||||
(void *)kallsyms_lookup_name("tof_utofu_procfs_ops_bch");
|
||||
if (WARN_ON(!mcctrl_tof_utofu_procfs_ops_bch))
|
||||
return -EFAULT;
|
||||
|
||||
mcctrl_tof_utofu_release_cq =
|
||||
(void *)kallsyms_lookup_name("tof_utofu_release_cq");
|
||||
if (WARN_ON(!mcctrl_tof_utofu_release_cq))
|
||||
return -EFAULT;
|
||||
|
||||
mcctrl_tof_utofu_release_bch =
|
||||
(void *)kallsyms_lookup_name("tof_utofu_release_bch");
|
||||
if (WARN_ON(!mcctrl_tof_utofu_release_bch))
|
||||
return -EFAULT;
|
||||
#endif
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
@ -331,6 +364,15 @@ int translate_rva_to_rpa(ihk_os_t os, unsigned long rpt, unsigned long rva,
|
||||
|
||||
// page table to translation_table.
|
||||
phys = ihk_device_map_memory(ihk_os_to_dev(os), rpt, PAGE_SIZE);
|
||||
#ifdef ENABLE_FUGAKU_HACKS
|
||||
if (!phys) {
|
||||
pr_err("%s(): ERROR: VA: 0x%lx, rpt is NULL for PID %d\n",
|
||||
__func__, rva, task_tgid_vnr(current));
|
||||
error = -EFAULT;
|
||||
goto out;
|
||||
}
|
||||
#endif
|
||||
|
||||
tbl = ihk_device_map_virtual(ihk_os_to_dev(os), phys, PAGE_SIZE, NULL, 0);
|
||||
rpa = (unsigned long)tbl->tt_pa;
|
||||
|
||||
@ -417,3 +459,108 @@ long arch_switch_ctx(struct uti_switch_ctx_desc *desc)
|
||||
out:
|
||||
return rc;
|
||||
}
|
||||
|
||||
|
||||
#ifdef ENABLE_TOFU
|
||||
/*
|
||||
* Tofu CQ and BCH release handlers
|
||||
*/
|
||||
int __mcctrl_tof_utofu_release_cq(struct inode *inode, struct file *filp);
|
||||
int __mcctrl_tof_utofu_release_bch(struct inode *inode, struct file *filp);
|
||||
|
||||
void mcctrl_tofu_hijack_release_handlers(void)
|
||||
{
|
||||
mcctrl_tof_utofu_procfs_ops_cq->release =
|
||||
__mcctrl_tof_utofu_release_cq;
|
||||
mcctrl_tof_utofu_procfs_ops_bch->release =
|
||||
__mcctrl_tof_utofu_release_bch;
|
||||
}
|
||||
|
||||
void mcctrl_tofu_restore_release_handlers(void)
|
||||
{
|
||||
mcctrl_tof_utofu_procfs_ops_cq->release =
|
||||
mcctrl_tof_utofu_release_cq;
|
||||
mcctrl_tof_utofu_procfs_ops_bch->release =
|
||||
mcctrl_tof_utofu_release_bch;
|
||||
}
|
||||
|
||||
int __mcctrl_tof_utofu_release_handler(struct inode *inode, struct file *filp,
|
||||
int (*__release_func)(struct inode *inode, struct file *filp))
|
||||
{
|
||||
struct mcctrl_usrdata *usrdata;
|
||||
struct mcctrl_file_to_pidfd *f2pfd;
|
||||
struct mcctrl_per_proc_data *ppd;
|
||||
struct ikc_scd_packet isp;
|
||||
int ret;
|
||||
|
||||
dprintk("%s: current PID: %d, comm: %s \n",
|
||||
__func__, task_tgid_vnr(current), current->comm);
|
||||
|
||||
f2pfd = mcctrl_file_to_pidfd_hash_lookup(filp, current->group_leader);
|
||||
if (!f2pfd) {
|
||||
goto out;
|
||||
}
|
||||
|
||||
dprintk("%s: current PID: %d, PID: %d, fd: %d ...\n",
|
||||
__func__, task_tgid_vnr(current), f2pfd->pid, f2pfd->fd);
|
||||
usrdata = ihk_host_os_get_usrdata(f2pfd->os);
|
||||
|
||||
/* Look up per-process structure */
|
||||
ppd = mcctrl_get_per_proc_data(usrdata, f2pfd->pid);
|
||||
if (!ppd) {
|
||||
pr_err("%s: PID: %d, fd: %d no PPD\n",
|
||||
__func__, f2pfd->pid, f2pfd->fd);
|
||||
goto out;
|
||||
}
|
||||
|
||||
dprintk("%s: PID: %d, fd: %d PPD OK\n",
|
||||
__func__, f2pfd->pid, f2pfd->fd);
|
||||
|
||||
/*
|
||||
* We are in release() due to the process being killed,
|
||||
* or because the application didn't close the file properly.
|
||||
* Ask McKernel to clean up this fd.
|
||||
*/
|
||||
isp.msg = SCD_MSG_CLEANUP_FD;
|
||||
isp.pid = f2pfd->pid;
|
||||
isp.arg = f2pfd->fd;
|
||||
|
||||
ret = mcctrl_ikc_send_wait(f2pfd->os, ppd->ikc_target_cpu,
|
||||
&isp, -20, NULL, NULL, 0);
|
||||
if (ret != 0) {
|
||||
dprintk("%s: WARNING: failed to send IKC msg: %d\n",
|
||||
__func__, ret);
|
||||
}
|
||||
|
||||
mcctrl_file_to_pidfd_hash_remove(filp, f2pfd->os,
|
||||
current->group_leader, f2pfd->fd);
|
||||
|
||||
mcctrl_put_per_proc_data(ppd);
|
||||
|
||||
/* Do not call into Linux driver if timed out in SIGKILL.. */
|
||||
if (ret == -ETIME && __fatal_signal_pending(current)) {
|
||||
pr_err("%s: WARNING: failed to send IKC msg in SIGKILL: %d\n",
|
||||
__func__, ret);
|
||||
goto out_no_release;
|
||||
}
|
||||
out:
|
||||
dprintk("%s: current PID: %d, comm: %s -> calling release\n",
|
||||
__func__, task_tgid_vnr(current), current->comm);
|
||||
return __release_func(inode, filp);
|
||||
|
||||
out_no_release:
|
||||
return ret;
|
||||
}
|
||||
|
||||
int __mcctrl_tof_utofu_release_cq(struct inode *inode, struct file *filp)
|
||||
{
|
||||
return __mcctrl_tof_utofu_release_handler(inode, filp,
|
||||
mcctrl_tof_utofu_release_cq);
|
||||
}
|
||||
|
||||
int __mcctrl_tof_utofu_release_bch(struct inode *inode, struct file *filp)
|
||||
{
|
||||
return __mcctrl_tof_utofu_release_handler(inode, filp,
|
||||
mcctrl_tof_utofu_release_bch);
|
||||
}
|
||||
#endif
|
||||
|
||||
@ -36,6 +36,7 @@
|
||||
#include <linux/semaphore.h>
|
||||
#include <linux/interrupt.h>
|
||||
#include <linux/cpumask.h>
|
||||
#include <linux/delay.h>
|
||||
#include <asm/uaccess.h>
|
||||
#include <asm/delay.h>
|
||||
#include <asm/io.h>
|
||||
@ -378,6 +379,7 @@ static void release_handler(ihk_os_t os, void *param)
|
||||
int os_ind = ihk_host_os_get_index(os);
|
||||
unsigned long flags;
|
||||
struct host_thread *thread;
|
||||
int ret;
|
||||
|
||||
/* Finalize FS switch for uti threads */
|
||||
write_lock_irqsave(&host_thread_lock, flags);
|
||||
@ -399,7 +401,13 @@ static void release_handler(ihk_os_t os, void *param)
|
||||
|
||||
dprintk("%s: SCD_MSG_CLEANUP_PROCESS, info: %p, cpu: %d\n",
|
||||
__FUNCTION__, info, info->cpu);
|
||||
mcctrl_ikc_send(os, info->cpu, &isp);
|
||||
ret = mcctrl_ikc_send_wait(os, info->cpu,
|
||||
&isp, -20, NULL, NULL, 0);
|
||||
if (ret != 0) {
|
||||
printk("%s: WARNING: failed to send IKC msg: %d\n",
|
||||
__func__, ret);
|
||||
}
|
||||
|
||||
if (os_ind >= 0) {
|
||||
delete_pid_entry(os_ind, info->pid);
|
||||
}
|
||||
@ -2201,7 +2209,13 @@ static DECLARE_WAIT_QUEUE_HEAD(perfctrlq);
|
||||
|
||||
long mcctrl_perf_num(ihk_os_t os, unsigned long arg)
|
||||
{
|
||||
struct mcctrl_usrdata *usrdata = ihk_host_os_get_usrdata(os);
|
||||
struct mcctrl_usrdata *usrdata;
|
||||
|
||||
if (!os || ihk_host_validate_os(os)) {
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
usrdata = ihk_host_os_get_usrdata(os);
|
||||
|
||||
if (!usrdata) {
|
||||
pr_err("%s: error: mcctrl_usrdata not found\n", __func__);
|
||||
@ -2226,22 +2240,34 @@ struct mcctrl_perf_ctrl_desc {
|
||||
*/
|
||||
long mcctrl_perf_set(ihk_os_t os, struct ihk_perf_event_attr *__user arg)
|
||||
{
|
||||
struct mcctrl_usrdata *usrdata = ihk_host_os_get_usrdata(os);
|
||||
struct mcctrl_usrdata *usrdata = NULL;
|
||||
struct ikc_scd_packet isp;
|
||||
struct perf_ctrl_desc *perf_desc;
|
||||
struct ihk_perf_event_attr attr;
|
||||
struct ihk_cpu_info *info = ihk_os_get_cpu_info(os);
|
||||
struct ihk_cpu_info *info = NULL;
|
||||
int ret = 0;
|
||||
int i = 0, j = 0;
|
||||
int need_free;
|
||||
int num_registered = 0;
|
||||
int err = 0;
|
||||
|
||||
if (!os || ihk_host_validate_os(os)) {
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
usrdata = ihk_host_os_get_usrdata(os);
|
||||
|
||||
if (!usrdata) {
|
||||
pr_err("%s: error: mcctrl_usrdata not found\n", __func__);
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
info = ihk_os_get_cpu_info(os);
|
||||
if (!info) {
|
||||
pr_err("%s: error: cannot get cpu info\n", __func__);
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
for (i = 0; i < usrdata->perf_event_num; i++) {
|
||||
ret = copy_from_user(&attr, &arg[i],
|
||||
sizeof(struct ihk_perf_event_attr));
|
||||
@ -2301,20 +2327,30 @@ long mcctrl_perf_set(ihk_os_t os, struct ihk_perf_event_attr *__user arg)
|
||||
|
||||
long mcctrl_perf_get(ihk_os_t os, unsigned long *__user arg)
|
||||
{
|
||||
struct mcctrl_usrdata *usrdata = ihk_host_os_get_usrdata(os);
|
||||
struct mcctrl_usrdata *usrdata = NULL;
|
||||
struct ikc_scd_packet isp;
|
||||
struct perf_ctrl_desc *perf_desc;
|
||||
struct ihk_cpu_info *info = ihk_os_get_cpu_info(os);
|
||||
struct ihk_cpu_info *info = NULL;
|
||||
unsigned long value_sum = 0;
|
||||
int ret = 0;
|
||||
int i = 0, j = 0;
|
||||
int need_free;
|
||||
|
||||
if (!os || ihk_host_validate_os(os)) {
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
usrdata = ihk_host_os_get_usrdata(os);
|
||||
if (!usrdata) {
|
||||
pr_err("%s: error: mcctrl_usrdata not found\n", __func__);
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
info = ihk_os_get_cpu_info(os);
|
||||
if (!info || info->n_cpus < 1) {
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
for (i = 0; i < usrdata->perf_event_num; i++) {
|
||||
perf_desc = kmalloc(sizeof(struct mcctrl_perf_ctrl_desc),
|
||||
GFP_KERNEL);
|
||||
@ -2362,15 +2398,20 @@ long mcctrl_perf_get(ihk_os_t os, unsigned long *__user arg)
|
||||
|
||||
long mcctrl_perf_enable(ihk_os_t os)
|
||||
{
|
||||
struct mcctrl_usrdata *usrdata = ihk_host_os_get_usrdata(os);
|
||||
struct mcctrl_usrdata *usrdata = NULL;
|
||||
struct ikc_scd_packet isp;
|
||||
struct perf_ctrl_desc *perf_desc;
|
||||
struct ihk_cpu_info *info = ihk_os_get_cpu_info(os);
|
||||
struct ihk_cpu_info *info = NULL;
|
||||
unsigned long cntr_mask = 0;
|
||||
int ret = 0;
|
||||
int i = 0, j = 0;
|
||||
int need_free;
|
||||
|
||||
if (!os || ihk_host_validate_os(os)) {
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
usrdata = ihk_host_os_get_usrdata(os);
|
||||
if (!usrdata) {
|
||||
pr_err("%s: error: mcctrl_usrdata not found\n", __func__);
|
||||
return -EINVAL;
|
||||
@ -2393,6 +2434,11 @@ long mcctrl_perf_enable(ihk_os_t os)
|
||||
isp.msg = SCD_MSG_PERF_CTRL;
|
||||
isp.arg = virt_to_phys(perf_desc);
|
||||
|
||||
info = ihk_os_get_cpu_info(os);
|
||||
if (!info || info->n_cpus < 1) {
|
||||
kfree(perf_desc);
|
||||
return -EINVAL;
|
||||
}
|
||||
for (j = 0; j < info->n_cpus; j++) {
|
||||
ret = mcctrl_ikc_send_wait(os, j, &isp, 0,
|
||||
wakeup_desc_of_perf_desc(perf_desc),
|
||||
@ -2420,15 +2466,20 @@ long mcctrl_perf_enable(ihk_os_t os)
|
||||
|
||||
long mcctrl_perf_disable(ihk_os_t os)
|
||||
{
|
||||
struct mcctrl_usrdata *usrdata = ihk_host_os_get_usrdata(os);
|
||||
struct mcctrl_usrdata *usrdata = NULL;
|
||||
struct ikc_scd_packet isp;
|
||||
struct perf_ctrl_desc *perf_desc;
|
||||
struct ihk_cpu_info *info = ihk_os_get_cpu_info(os);
|
||||
struct ihk_cpu_info *info = NULL;
|
||||
unsigned long cntr_mask = 0;
|
||||
int ret = 0;
|
||||
int i = 0, j = 0;
|
||||
int need_free;
|
||||
|
||||
if (!os || ihk_host_validate_os(os)) {
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
usrdata = ihk_host_os_get_usrdata(os);
|
||||
if (!usrdata) {
|
||||
pr_err("%s: error: mcctrl_usrdata not found\n", __func__);
|
||||
return -EINVAL;
|
||||
@ -2451,6 +2502,11 @@ long mcctrl_perf_disable(ihk_os_t os)
|
||||
isp.msg = SCD_MSG_PERF_CTRL;
|
||||
isp.arg = virt_to_phys(perf_desc);
|
||||
|
||||
info = ihk_os_get_cpu_info(os);
|
||||
if (!info || info->n_cpus < 1) {
|
||||
kfree(perf_desc);
|
||||
return -EINVAL;
|
||||
}
|
||||
for (j = 0; j < info->n_cpus; j++) {
|
||||
ret = mcctrl_ikc_send_wait(os, j, &isp, 0,
|
||||
wakeup_desc_of_perf_desc(perf_desc),
|
||||
@ -2492,6 +2548,10 @@ long mcctrl_getrusage(ihk_os_t ihk_os, struct mcctrl_ioctl_getrusage_desc *__use
|
||||
unsigned long ut;
|
||||
unsigned long st;
|
||||
|
||||
if (!ihk_os || ihk_host_validate_os(ihk_os)) {
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
ret = copy_from_user(&desc, _desc, sizeof(struct mcctrl_ioctl_getrusage_desc));
|
||||
if (ret != 0) {
|
||||
printk("%s: copy_from_user failed\n", __FUNCTION__);
|
||||
@ -3480,7 +3540,7 @@ int mcctrl_get_request_os_cpu(ihk_os_t os, int *ret_cpu)
|
||||
struct ihk_ikc_channel_desc *ch;
|
||||
int ret = 0;
|
||||
|
||||
if (!os) {
|
||||
if (!os || ihk_host_validate_os(os) || !ret_cpu) {
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
@ -3522,7 +3582,11 @@ int mcctrl_get_request_os_cpu(ihk_os_t os, int *ret_cpu)
|
||||
*ret_cpu = ch->send.queue->read_cpu;
|
||||
ret = 0;
|
||||
|
||||
#ifndef ENABLE_FUGAKU_HACKS
|
||||
pr_info("%s: OS: %lx, CPU: %d\n",
|
||||
#else
|
||||
dprintk("%s: OS: %lx, CPU: %d\n",
|
||||
#endif
|
||||
__func__, (unsigned long)os, *ret_cpu);
|
||||
|
||||
out_put_ppd:
|
||||
@ -3586,7 +3650,11 @@ int __mcctrl_os_read_write_cpu_register(ihk_os_t os, int cpu,
|
||||
/* Notify caller (for future async implementation) */
|
||||
atomic_set(&desc->sync, 1);
|
||||
|
||||
#ifndef ENABLE_FUGAKU_HACKS
|
||||
dprintk("%s: MCCTRL_OS_CPU_%s_REGISTER: CPU: %d, addr_ext: 0x%lx, val: 0x%lx\n",
|
||||
#else
|
||||
printk("%s: MCCTRL_OS_CPU_%s_REGISTER: CPU: %d, addr_ext: 0x%lx, val: 0x%lx\n",
|
||||
#endif
|
||||
__FUNCTION__,
|
||||
(op == MCCTRL_OS_CPU_READ_REGISTER ? "READ" : "WRITE"), cpu,
|
||||
desc->addr_ext, desc->val);
|
||||
|
||||
@ -50,6 +50,9 @@ extern void procfs_exit(int);
|
||||
extern void uti_attr_finalize(void);
|
||||
extern void binfmt_mcexec_init(void);
|
||||
extern void binfmt_mcexec_exit(void);
|
||||
#ifdef ENABLE_TOFU
|
||||
extern void mcctrl_file_to_pidfd_hash_init(void);
|
||||
#endif
|
||||
|
||||
extern int mcctrl_os_read_cpu_register(ihk_os_t os, int cpu,
|
||||
struct ihk_os_cpu_register *desc);
|
||||
@ -57,6 +60,11 @@ extern int mcctrl_os_write_cpu_register(ihk_os_t os, int cpu,
|
||||
struct ihk_os_cpu_register *desc);
|
||||
extern int mcctrl_get_request_os_cpu(ihk_os_t os, int *cpu);
|
||||
|
||||
#ifdef ENABLE_TOFU
|
||||
extern void mcctrl_tofu_hijack_release_handlers(void);
|
||||
extern void mcctrl_tofu_restore_release_handlers(void);
|
||||
#endif
|
||||
|
||||
static long mcctrl_ioctl(ihk_os_t os, unsigned int request, void *priv,
|
||||
unsigned long arg, struct file *file)
|
||||
{
|
||||
@ -227,7 +235,6 @@ void (*mcctrl_zap_page_range)(struct vm_area_struct *vma,
|
||||
|
||||
struct inode_operations *mcctrl_hugetlbfs_inode_operations;
|
||||
|
||||
|
||||
static int symbols_init(void)
|
||||
{
|
||||
#if LINUX_VERSION_CODE >= KERNEL_VERSION(4,17,0)
|
||||
@ -319,10 +326,17 @@ static int __init mcctrl_init(void)
|
||||
}
|
||||
|
||||
binfmt_mcexec_init();
|
||||
#ifdef ENABLE_TOFU
|
||||
mcctrl_file_to_pidfd_hash_init();
|
||||
#endif
|
||||
|
||||
if ((ret = symbols_init()))
|
||||
goto error;
|
||||
|
||||
#ifdef ENABLE_TOFU
|
||||
mcctrl_tofu_hijack_release_handlers();
|
||||
#endif
|
||||
|
||||
if ((ret = ihk_host_register_os_notifier(&mcctrl_os_notifier)) != 0) {
|
||||
printk("mcctrl: error: registering OS notifier\n");
|
||||
goto error;
|
||||
@ -345,6 +359,9 @@ static void __exit mcctrl_exit(void)
|
||||
|
||||
binfmt_mcexec_exit();
|
||||
uti_attr_finalize();
|
||||
#ifdef ENABLE_TOFU
|
||||
mcctrl_tofu_restore_release_handlers();
|
||||
#endif
|
||||
|
||||
printk("mcctrl: unregistered.\n");
|
||||
}
|
||||
|
||||
@ -142,13 +142,35 @@ int mcctrl_ikc_send_wait(ihk_os_t os, int cpu, struct ikc_scd_packet *pisp,
|
||||
ret = mcctrl_ikc_send(os, cpu, pisp);
|
||||
if (ret < 0) {
|
||||
pr_warn("%s: mcctrl_ikc_send failed: %d\n", __func__, ret);
|
||||
kfree(desc);
|
||||
if (alloc_desc)
|
||||
kfree(desc);
|
||||
return ret;
|
||||
}
|
||||
|
||||
if (timeout) {
|
||||
ret = wait_event_interruptible_timeout(desc->wq,
|
||||
desc->status, timeout);
|
||||
/*
|
||||
* Negative timeout indicates busy waiting, which can be used
|
||||
* in situations where wait_event_interruptible_XXX() would
|
||||
* fail, e.g., in a signal handler, at the time the process
|
||||
* is being killed, etc.
|
||||
*/
|
||||
if (timeout < 0) {
|
||||
unsigned long timeout_jiffies =
|
||||
jiffies + msecs_to_jiffies(timeout * -1);
|
||||
ret = -ETIME;
|
||||
|
||||
while (time_before(jiffies, timeout_jiffies)) {
|
||||
schedule();
|
||||
if (READ_ONCE(desc->status)) {
|
||||
ret = 0;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
else {
|
||||
ret = wait_event_interruptible_timeout(desc->wq,
|
||||
desc->status, msecs_to_jiffies(timeout));
|
||||
}
|
||||
} else {
|
||||
ret = wait_event_interruptible(desc->wq, desc->status);
|
||||
}
|
||||
@ -210,6 +232,8 @@ static int syscall_packet_handler(struct ihk_ikc_channel_desc *c,
|
||||
case SCD_MSG_PROCFS_ANSWER:
|
||||
case SCD_MSG_REMOTE_PAGE_FAULT_ANSWER:
|
||||
case SCD_MSG_CPU_RW_REG_RESP:
|
||||
case SCD_MSG_CLEANUP_PROCESS_RESP:
|
||||
case SCD_MSG_CLEANUP_FD_RESP:
|
||||
mcctrl_wakeup_cb(__os, pisp);
|
||||
break;
|
||||
|
||||
@ -280,7 +304,11 @@ int mcctrl_ikc_send(ihk_os_t os, int cpu, struct ikc_scd_packet *pisp)
|
||||
{
|
||||
struct mcctrl_usrdata *usrdata;
|
||||
|
||||
if (!os || cpu < 0) {
|
||||
if (!os || ihk_host_validate_os(os) || !pisp) {
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
if (cpu < 0) {
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
|
||||
@ -58,7 +58,8 @@
|
||||
#define SCD_MSG_SEND_SIGNAL 0x7
|
||||
#define SCD_MSG_SEND_SIGNAL_ACK 0x8
|
||||
#define SCD_MSG_CLEANUP_PROCESS 0x9
|
||||
#define SCD_MSG_GET_VDSO_INFO 0xa
|
||||
#define SCD_MSG_CLEANUP_PROCESS_RESP 0xa
|
||||
#define SCD_MSG_GET_VDSO_INFO 0xb
|
||||
|
||||
//#define SCD_MSG_GET_CPU_MAPPING 0xc
|
||||
//#define SCD_MSG_REPLY_GET_CPU_MAPPING 0xd
|
||||
@ -104,6 +105,8 @@
|
||||
|
||||
#define SCD_MSG_CPU_RW_REG 0x52
|
||||
#define SCD_MSG_CPU_RW_REG_RESP 0x53
|
||||
#define SCD_MSG_CLEANUP_FD 0x54
|
||||
#define SCD_MSG_CLEANUP_FD_RESP 0x55
|
||||
|
||||
#define SCD_MSG_FUTEX_WAKE 0x60
|
||||
|
||||
@ -556,4 +559,31 @@ struct uti_futex_resp {
|
||||
int done;
|
||||
wait_queue_head_t wq;
|
||||
};
|
||||
|
||||
#ifdef ENABLE_TOFU
|
||||
/*
|
||||
* Hash table to keep track of files and related processes
|
||||
* and file descriptors.
|
||||
* NOTE: Used for Tofu driver release handlers.
|
||||
*/
|
||||
#define MCCTRL_FILE_2_PIDFD_HASH_SHIFT 4
|
||||
#define MCCTRL_FILE_2_PIDFD_HASH_SIZE (1 << MCCTRL_FILE_2_PIDFD_HASH_SHIFT)
|
||||
#define MCCTRL_FILE_2_PIDFD_HASH_MASK (MCCTRL_FILE_2_PIDFD_HASH_SIZE - 1)
|
||||
|
||||
struct mcctrl_file_to_pidfd {
|
||||
struct file *filp;
|
||||
ihk_os_t os;
|
||||
struct task_struct *group_leader;
|
||||
int pid;
|
||||
int fd;
|
||||
struct list_head hash;
|
||||
};
|
||||
|
||||
int mcctrl_file_to_pidfd_hash_insert(struct file *filp,
|
||||
ihk_os_t os, int pid, struct task_struct *group_leader, int fd);
|
||||
struct mcctrl_file_to_pidfd *mcctrl_file_to_pidfd_hash_lookup(
|
||||
struct file *filp, struct task_struct *group_leader);
|
||||
int mcctrl_file_to_pidfd_hash_remove(struct file *filp,
|
||||
ihk_os_t os, struct task_struct *group_leader, int fd);
|
||||
#endif
|
||||
#endif
|
||||
|
||||
@ -126,7 +126,7 @@ find_procfs_entry(struct procfs_list_entry *parent, const char *name)
|
||||
static void
|
||||
delete_procfs_entries(struct procfs_list_entry *top)
|
||||
{
|
||||
struct procfs_list_entry *e;
|
||||
struct procfs_list_entry *e = NULL;
|
||||
struct procfs_list_entry *n;
|
||||
|
||||
list_del(&top->list);
|
||||
@ -136,8 +136,10 @@ delete_procfs_entries(struct procfs_list_entry *top)
|
||||
}
|
||||
|
||||
#if LINUX_VERSION_CODE < KERNEL_VERSION(3,10,0)
|
||||
e->entry->read_proc = NULL;
|
||||
e->entry->data = NULL;
|
||||
if (e) {
|
||||
e->entry->read_proc = NULL;
|
||||
e->entry->data = NULL;
|
||||
}
|
||||
#endif
|
||||
remove_proc_entry(top->name, top->parent? top->parent->entry: NULL);
|
||||
if(top->data)
|
||||
|
||||
@ -45,6 +45,9 @@
|
||||
#include <linux/mount.h>
|
||||
#include <linux/kdev_t.h>
|
||||
#include <linux/hugetlb.h>
|
||||
#include <linux/proc_fs.h>
|
||||
#include <linux/rbtree.h>
|
||||
#include <linux/llist.h>
|
||||
#include <asm/uaccess.h>
|
||||
#include <asm/delay.h>
|
||||
#include <asm/io.h>
|
||||
@ -52,6 +55,7 @@
|
||||
#include "mcctrl.h"
|
||||
#include <linux/version.h>
|
||||
#include <archdeps.h>
|
||||
#include <asm/pgtable.h>
|
||||
|
||||
#define ALIGN_WAIT_BUF(z) (((z + 63) >> 6) << 6)
|
||||
|
||||
@ -539,7 +543,11 @@ retry_alloc:
|
||||
#define USE_VM_INSERT_PFN 1
|
||||
|
||||
#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 11, 0)
|
||||
#if defined(RHEL_RELEASE_CODE) && RHEL_RELEASE_CODE >= RHEL_RELEASE_VERSION(8, 2)
|
||||
static vm_fault_t rus_vm_fault(struct vm_fault *vmf)
|
||||
#else
|
||||
static int rus_vm_fault(struct vm_fault *vmf)
|
||||
#endif
|
||||
{
|
||||
struct vm_area_struct *vma = vmf->vma;
|
||||
#else
|
||||
@ -651,6 +659,9 @@ static int rus_vm_fault(struct vm_area_struct *vma, struct vm_fault *vmf)
|
||||
goto put_and_out;
|
||||
}
|
||||
|
||||
// Force regular page size
|
||||
pgsize = PAGE_SIZE;
|
||||
|
||||
rva = (unsigned long)addr & ~(pgsize - 1);
|
||||
rpa = rpa & ~(pgsize - 1);
|
||||
|
||||
@ -662,7 +673,8 @@ static int rus_vm_fault(struct vm_area_struct *vma, struct vm_fault *vmf)
|
||||
|
||||
/* LWK may hold large page based mappings that align rva outside
|
||||
* Linux' VMA, make sure we don't try to map to those pages */
|
||||
if (rva + (pix * PAGE_SIZE) < vma->vm_start) {
|
||||
if (rva + (pix * PAGE_SIZE) < vma->vm_start ||
|
||||
rva + (pix * PAGE_SIZE) > vma->vm_end) {
|
||||
continue;
|
||||
}
|
||||
|
||||
@ -673,21 +685,27 @@ static int rus_vm_fault(struct vm_area_struct *vma, struct vm_fault *vmf)
|
||||
if (error) {
|
||||
pr_err("%s: error inserting mapping for 0x%#lx "
|
||||
"(req: TID: %d, syscall: %lu) error: %d,"
|
||||
" vm_start: 0x%lx, vm_end: 0x%lx\n",
|
||||
" vm_start: 0x%lx, vm_end: 0x%lx, pgsize: %lu, ind: %lu\n",
|
||||
__func__,
|
||||
(unsigned long)addr, packet.fault_tid,
|
||||
rsysnum, error,
|
||||
vma->vm_start, vma->vm_end);
|
||||
vma->vm_start, vma->vm_end, pgsize, pix);
|
||||
}
|
||||
}
|
||||
else
|
||||
else {
|
||||
#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 18, 0)
|
||||
error = vmf_insert_pfn(vma, rva+(pix*PAGE_SIZE),
|
||||
pfn+pix);
|
||||
if (error == VM_FAULT_NOPAGE) {
|
||||
dprintk("%s: vmf_insert_pfn returned %d\n",
|
||||
__func__, error);
|
||||
error = 0;
|
||||
}
|
||||
#else
|
||||
error = vm_insert_pfn(vma, rva+(pix*PAGE_SIZE),
|
||||
pfn+pix);
|
||||
#endif
|
||||
}
|
||||
if (error) {
|
||||
pr_err("%s: vm_insert_pfn returned %d\n",
|
||||
__func__, error);
|
||||
@ -1831,20 +1849,160 @@ static long pager_call(ihk_os_t os, struct syscall_request *req)
|
||||
return ret;
|
||||
}
|
||||
|
||||
#ifdef ENABLE_TOFU
|
||||
struct list_head mcctrl_file_to_pidfd_hash[MCCTRL_FILE_2_PIDFD_HASH_SIZE];
|
||||
spinlock_t mcctrl_file_to_pidfd_hash_lock;
|
||||
|
||||
void mcctrl_file_to_pidfd_hash_init(void)
|
||||
{
|
||||
int hash;
|
||||
spin_lock_init(&mcctrl_file_to_pidfd_hash_lock);
|
||||
|
||||
for (hash = 0; hash < MCCTRL_FILE_2_PIDFD_HASH_SIZE; ++hash) {
|
||||
INIT_LIST_HEAD(&mcctrl_file_to_pidfd_hash[hash]);
|
||||
}
|
||||
}
|
||||
|
||||
int mcctrl_file_to_pidfd_hash_insert(struct file *filp,
|
||||
ihk_os_t os, int pid, struct task_struct *group_leader, int fd)
|
||||
{
|
||||
unsigned long irqflags;
|
||||
struct mcctrl_file_to_pidfd *file2pidfd_iter;
|
||||
struct mcctrl_file_to_pidfd *file2pidfd;
|
||||
int hash = (int)((unsigned long)filp &
|
||||
(unsigned long)MCCTRL_FILE_2_PIDFD_HASH_MASK);
|
||||
int ret = 0;
|
||||
|
||||
file2pidfd = kmalloc(sizeof(*file2pidfd), GFP_ATOMIC);
|
||||
if (!file2pidfd)
|
||||
return -ENOMEM;
|
||||
|
||||
file2pidfd->filp = filp;
|
||||
file2pidfd->os = os;
|
||||
file2pidfd->pid = pid;
|
||||
file2pidfd->group_leader = group_leader;
|
||||
file2pidfd->fd = fd;
|
||||
|
||||
spin_lock_irqsave(&mcctrl_file_to_pidfd_hash_lock, irqflags);
|
||||
list_for_each_entry(file2pidfd_iter,
|
||||
&mcctrl_file_to_pidfd_hash[hash], hash) {
|
||||
if (file2pidfd_iter->filp == filp) {
|
||||
printk("%s: WARNING: filp: %p, pid: %d, fd: %d exists\n",
|
||||
__func__, filp, pid, fd);
|
||||
ret = -EBUSY;
|
||||
goto free_out;
|
||||
}
|
||||
}
|
||||
|
||||
list_add_tail(&file2pidfd->hash,
|
||||
&mcctrl_file_to_pidfd_hash[hash]);
|
||||
dprintk("%s: filp: %p, pid: %d, fd: %d added\n",
|
||||
__func__, filp, pid, fd);
|
||||
|
||||
spin_unlock_irqrestore(&mcctrl_file_to_pidfd_hash_lock, irqflags);
|
||||
return ret;
|
||||
|
||||
free_out:
|
||||
kfree(file2pidfd);
|
||||
spin_unlock_irqrestore(&mcctrl_file_to_pidfd_hash_lock, irqflags);
|
||||
return ret;
|
||||
}
|
||||
|
||||
/*
|
||||
* XXX: lookup relies on group_leader to identify the process
|
||||
* because PIDs might be different across name spaces (e.g.,
|
||||
* when using Docker)
|
||||
*/
|
||||
struct mcctrl_file_to_pidfd *mcctrl_file_to_pidfd_hash_lookup(
|
||||
struct file *filp, struct task_struct *group_leader)
|
||||
{
|
||||
unsigned long irqflags;
|
||||
struct mcctrl_file_to_pidfd *file2pidfd_iter;
|
||||
struct mcctrl_file_to_pidfd *file2pidfd = NULL;
|
||||
int hash = (int)((unsigned long)filp &
|
||||
(unsigned long)MCCTRL_FILE_2_PIDFD_HASH_MASK);
|
||||
|
||||
spin_lock_irqsave(&mcctrl_file_to_pidfd_hash_lock, irqflags);
|
||||
list_for_each_entry(file2pidfd_iter,
|
||||
&mcctrl_file_to_pidfd_hash[hash], hash) {
|
||||
if (file2pidfd_iter->filp == filp &&
|
||||
file2pidfd_iter->group_leader == group_leader) {
|
||||
file2pidfd = file2pidfd_iter;
|
||||
dprintk("%s: filp: %p, pid: %d, fd: %d found\n",
|
||||
__func__, filp, file2pidfd->pid, file2pidfd->fd);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
spin_unlock_irqrestore(&mcctrl_file_to_pidfd_hash_lock, irqflags);
|
||||
|
||||
return file2pidfd;
|
||||
}
|
||||
|
||||
int mcctrl_file_to_pidfd_hash_remove(struct file *filp,
|
||||
ihk_os_t os, struct task_struct *group_leader, int fd)
|
||||
{
|
||||
unsigned long irqflags;
|
||||
struct mcctrl_file_to_pidfd *file2pidfd_iter;
|
||||
int hash = (int)((unsigned long)filp &
|
||||
(unsigned long)MCCTRL_FILE_2_PIDFD_HASH_MASK);
|
||||
int ret = 0;
|
||||
|
||||
spin_lock_irqsave(&mcctrl_file_to_pidfd_hash_lock, irqflags);
|
||||
list_for_each_entry(file2pidfd_iter,
|
||||
&mcctrl_file_to_pidfd_hash[hash], hash) {
|
||||
if (file2pidfd_iter->filp != filp)
|
||||
continue;
|
||||
|
||||
if (file2pidfd_iter->os != os)
|
||||
continue;
|
||||
|
||||
if (file2pidfd_iter->group_leader != group_leader)
|
||||
continue;
|
||||
|
||||
if (file2pidfd_iter->fd != fd)
|
||||
continue;
|
||||
|
||||
list_del(&file2pidfd_iter->hash);
|
||||
dprintk("%s: filp: %p, pid: %d, fd: %d removed\n",
|
||||
__func__, filp, file2pidfd_iter->pid, fd);
|
||||
kfree(file2pidfd_iter);
|
||||
goto unlock_out;
|
||||
}
|
||||
|
||||
dprintk("%s: filp: %p, pid: %d, fd: %d couldn't be found\n",
|
||||
__func__, filp, pid, fd);
|
||||
ret = -ENOENT;
|
||||
|
||||
unlock_out:
|
||||
spin_unlock_irqrestore(&mcctrl_file_to_pidfd_hash_lock, irqflags);
|
||||
return ret;
|
||||
}
|
||||
#endif
|
||||
|
||||
void __return_syscall(ihk_os_t os, struct ikc_scd_packet *packet,
|
||||
long ret, int stid)
|
||||
{
|
||||
unsigned long phys;
|
||||
struct syscall_response *res;
|
||||
|
||||
if (!os || ihk_host_validate_os(os) || !packet) {
|
||||
return;
|
||||
}
|
||||
|
||||
phys = ihk_device_map_memory(ihk_os_to_dev(os),
|
||||
packet->resp_pa, sizeof(*res));
|
||||
if (!phys) {
|
||||
return;
|
||||
}
|
||||
|
||||
res = ihk_device_map_virtual(ihk_os_to_dev(os),
|
||||
phys, sizeof(*res), NULL, 0);
|
||||
|
||||
if (!res) {
|
||||
printk("%s: ERROR: invalid response structure address\n",
|
||||
__FUNCTION__);
|
||||
ihk_device_unmap_memory(ihk_os_to_dev(os), phys, sizeof(*res));
|
||||
return;
|
||||
}
|
||||
|
||||
@ -1852,6 +2010,59 @@ void __return_syscall(ihk_os_t os, struct ikc_scd_packet *packet,
|
||||
res->ret = ret;
|
||||
res->stid = stid;
|
||||
|
||||
#ifdef ENABLE_TOFU
|
||||
/* Record PDE_DATA after open() calls for Tofu driver */
|
||||
if (packet->req.number == __NR_openat && ret > 1) {
|
||||
char *pathbuf, *fullpath;
|
||||
struct fd f;
|
||||
int fd;
|
||||
|
||||
fd = ret;
|
||||
f = fdget(fd);
|
||||
|
||||
if (!f.file) {
|
||||
goto out_notify;
|
||||
}
|
||||
|
||||
pathbuf = kmalloc(PATH_MAX, GFP_ATOMIC);
|
||||
if (!pathbuf) {
|
||||
goto out_fdput;
|
||||
}
|
||||
|
||||
fullpath = d_path(&f.file->f_path, pathbuf, PATH_MAX);
|
||||
if (IS_ERR(fullpath)) {
|
||||
goto out_free;
|
||||
}
|
||||
|
||||
if (!strncmp("/proc/tofu/dev/", fullpath, 15)) {
|
||||
res->pde_data = PDE_DATA(file_inode(f.file));
|
||||
dprintk("%s: fd: %d, path: %s, PDE_DATA: 0x%lx\n",
|
||||
__func__,
|
||||
fd,
|
||||
fullpath,
|
||||
(unsigned long)res->pde_data);
|
||||
dprintk("%s: pgd_index: %ld, pmd_index: %ld, pte_index: %ld\n",
|
||||
__func__,
|
||||
pgd_index((unsigned long)res->pde_data),
|
||||
pmd_index((unsigned long)res->pde_data),
|
||||
pte_index((unsigned long)res->pde_data));
|
||||
#ifdef CONFIG_ARM64
|
||||
dprintk("CONFIG_ARM64_VA_BITS: %d, PGDIR_SHIFT: %d\n",
|
||||
CONFIG_ARM64_VA_BITS, PGDIR_SHIFT);
|
||||
#endif
|
||||
mcctrl_file_to_pidfd_hash_insert(f.file, os,
|
||||
task_tgid_vnr(current),
|
||||
current->group_leader, fd);
|
||||
}
|
||||
|
||||
out_free:
|
||||
kfree(pathbuf);
|
||||
out_fdput:
|
||||
fdput(f);
|
||||
}
|
||||
|
||||
out_notify:
|
||||
#endif
|
||||
if (__notify_syscall_requester(os, packet, res) < 0) {
|
||||
printk("%s: WARNING: failed to notify PID %d\n",
|
||||
__FUNCTION__, packet->pid);
|
||||
@ -2159,6 +2370,93 @@ int __do_in_kernel_irq_syscall(ihk_os_t os, struct ikc_scd_packet *packet)
|
||||
return 0;
|
||||
}
|
||||
|
||||
/*
|
||||
* Memory clearing helpers.
|
||||
*/
|
||||
struct node_distance;
|
||||
|
||||
#define IHK_RBTREE_ALLOCATOR
|
||||
|
||||
#ifdef IHK_RBTREE_ALLOCATOR
|
||||
struct free_chunk {
|
||||
unsigned long addr, size;
|
||||
struct rb_node node;
|
||||
struct llist_node list;
|
||||
};
|
||||
#endif
|
||||
|
||||
typedef struct mcs_lock_node {
|
||||
#ifndef SPIN_LOCK_IN_MCS
|
||||
unsigned long locked;
|
||||
struct mcs_lock_node *next;
|
||||
#endif
|
||||
unsigned long irqsave;
|
||||
#ifdef SPIN_LOCK_IN_MCS
|
||||
ihk_spinlock_t spinlock;
|
||||
#endif
|
||||
#ifndef ENABLE_UBSAN
|
||||
} __aligned(64) mcs_lock_node_t;
|
||||
#else
|
||||
} mcs_lock_node_t;
|
||||
#endif
|
||||
|
||||
struct ihk_mc_numa_node {
|
||||
int id;
|
||||
int linux_numa_id;
|
||||
int type;
|
||||
struct list_head allocators;
|
||||
struct node_distance *nodes_by_distance;
|
||||
#ifdef IHK_RBTREE_ALLOCATOR
|
||||
atomic_t zeroing_workers;
|
||||
atomic_t nr_to_zero_pages;
|
||||
struct llist_head zeroed_list;
|
||||
struct llist_head to_zero_list;
|
||||
struct rb_root free_chunks;
|
||||
mcs_lock_node_t lock;
|
||||
|
||||
unsigned long nr_pages;
|
||||
/*
|
||||
* nr_free_pages: all freed pages, zeroed if zero_at_free
|
||||
*/
|
||||
unsigned long nr_free_pages;
|
||||
unsigned long min_addr;
|
||||
unsigned long max_addr;
|
||||
#endif
|
||||
};
|
||||
|
||||
void mcctrl_zero_mckernel_pages(unsigned long arg)
|
||||
{
|
||||
struct llist_node *llnode;
|
||||
struct ihk_mc_numa_node *node =
|
||||
(struct ihk_mc_numa_node *)arg;
|
||||
|
||||
/* Iterate free chunks */
|
||||
while ((llnode = llist_del_first(&node->to_zero_list))) {
|
||||
unsigned long addr;
|
||||
unsigned long size;
|
||||
struct free_chunk *chunk =
|
||||
container_of(llnode, struct free_chunk, list);
|
||||
|
||||
addr = chunk->addr;
|
||||
size = chunk->size;
|
||||
|
||||
memset(phys_to_virt(addr) + sizeof(*chunk), 0,
|
||||
chunk->size - sizeof(*chunk));
|
||||
llist_add(&chunk->list, &node->zeroed_list);
|
||||
|
||||
dprintk("%s: zeroed %lu pages @ McKernel NUMA %d (chunk: 0x%lx:%lu)\n",
|
||||
__func__,
|
||||
size >> PAGE_SHIFT,
|
||||
node->id,
|
||||
addr, size);
|
||||
barrier();
|
||||
atomic_sub((int)(size >> PAGE_SHIFT), &node->nr_to_zero_pages);
|
||||
}
|
||||
|
||||
atomic_dec(&node->zeroing_workers);
|
||||
}
|
||||
|
||||
|
||||
int __do_in_kernel_syscall(ihk_os_t os, struct ikc_scd_packet *packet)
|
||||
{
|
||||
struct syscall_request *sc = &packet->req;
|
||||
@ -2167,6 +2465,28 @@ int __do_in_kernel_syscall(ihk_os_t os, struct ikc_scd_packet *packet)
|
||||
|
||||
dprintk("%s: system call: %lx\n", __FUNCTION__, sc->args[0]);
|
||||
switch (sc->number) {
|
||||
#ifdef ENABLE_TOFU
|
||||
case __NR_close: {
|
||||
struct fd f;
|
||||
int fd;
|
||||
|
||||
fd = (int)sc->args[0];
|
||||
if (fd > 2) {
|
||||
f = fdget(fd);
|
||||
|
||||
if (f.file) {
|
||||
mcctrl_file_to_pidfd_hash_remove(f.file, os,
|
||||
current->group_leader, fd);
|
||||
fdput(f);
|
||||
}
|
||||
}
|
||||
|
||||
error = -ENOSYS;
|
||||
goto out;
|
||||
|
||||
break;
|
||||
}
|
||||
#endif
|
||||
case __NR_mmap:
|
||||
ret = pager_call(os, sc);
|
||||
break;
|
||||
@ -2179,6 +2499,14 @@ int __do_in_kernel_syscall(ihk_os_t os, struct ikc_scd_packet *packet)
|
||||
ret = remap_user_space(sc->args[0], sc->args[1], sc->args[2]);
|
||||
break;
|
||||
|
||||
case __NR_move_pages:
|
||||
/*
|
||||
* move pages is used for zeroing McKernel side memory,
|
||||
* this call is NOT offloaded by applications.
|
||||
*/
|
||||
mcctrl_zero_mckernel_pages(sc->args[0]);
|
||||
goto out_no_syscall_return;
|
||||
|
||||
case __NR_exit_group: {
|
||||
|
||||
/* Make sure the user space handler will be called as well */
|
||||
@ -2263,6 +2591,8 @@ sched_setparam_out:
|
||||
}
|
||||
|
||||
__return_syscall(os, packet, ret, 0);
|
||||
|
||||
out_no_syscall_return:
|
||||
ihk_ikc_release_packet((struct ihk_ikc_free_packet *)packet);
|
||||
|
||||
error = 0;
|
||||
|
||||
@ -1179,7 +1179,7 @@ static int start_gdb(void) {
|
||||
|
||||
sprintf(buf, "target remote :%d", ntohs(sin.sin_port));
|
||||
execlp("gdb", "eclair", "-q", "-ex", "set prompt (eclair) ",
|
||||
"-ex", buf, opt.kernel_path, NULL);
|
||||
"-ex", buf, opt.kernel_path, "-ex", "set pagination off", NULL);
|
||||
perror("execlp");
|
||||
return 3;
|
||||
}
|
||||
|
||||
@ -68,13 +68,13 @@
|
||||
#include <sys/user.h>
|
||||
#endif /* !__aarch64__ */
|
||||
#include <sys/prctl.h>
|
||||
#include "../../config.h"
|
||||
#include "../include/uprotocol.h"
|
||||
#include <ihk/ihk_host_user.h>
|
||||
#include "../include/uti.h"
|
||||
#include <getopt.h>
|
||||
#include "archdep.h"
|
||||
#include "arch_args.h"
|
||||
#include "../../config.h"
|
||||
#include <numa.h>
|
||||
#include <numaif.h>
|
||||
#include <spawn.h>
|
||||
@ -84,7 +84,11 @@
|
||||
#include "../include/pmi.h"
|
||||
#include "../include/qlmpi.h"
|
||||
#include <sys/xattr.h>
|
||||
#include "../include/defs.h"
|
||||
#include "../../lib/include/list.h"
|
||||
#include "../../lib/include/bitops-set_bit.h"
|
||||
#include "../../lib/include/bitops-clear_bit.h"
|
||||
#include "../../lib/include/bitops-test_bit.h"
|
||||
|
||||
//#define DEBUG
|
||||
#define ADD_ENVS_OPTION
|
||||
@ -187,6 +191,8 @@ static int mpol_no_stack = 0;
|
||||
static int mpol_no_bss = 0;
|
||||
static int mpol_shm_premap = 0;
|
||||
static int no_bind_ikc_map = 0;
|
||||
static int straight_map = 0;
|
||||
static unsigned long straight_map_threshold = (1024*1024);
|
||||
static unsigned long mpol_threshold = 0;
|
||||
static unsigned long heap_extension = -1;
|
||||
static int profile = 0;
|
||||
@ -198,6 +204,9 @@ static char *mpol_bind_nodes = NULL;
|
||||
static int uti_thread_rank = 0;
|
||||
static int uti_use_last_cpu = 0;
|
||||
static int enable_uti = 0;
|
||||
#ifdef ENABLE_TOFU
|
||||
static int enable_tofu = 0;
|
||||
#endif
|
||||
|
||||
/* Partitioned execution (e.g., for MPI) */
|
||||
static int nr_processes = 0;
|
||||
@ -1053,6 +1062,64 @@ static inline cpu_set_t *numa_node_set(int n)
|
||||
return (cpu_set_t *)(numa_nodes + n * cpu_set_size);
|
||||
}
|
||||
|
||||
static inline void _numa_local(__cpu_set_unit *localset,
|
||||
unsigned long *nodemask, int nonlocal)
|
||||
{
|
||||
int i;
|
||||
|
||||
memset(nodemask, 0, PLD_PROCESS_NUMA_MASK_BITS / 8);
|
||||
|
||||
for (i = 0; i < nnodes; i++) {
|
||||
cpu_set_t *nodeset = numa_node_set(i);
|
||||
int j;
|
||||
|
||||
if (nonlocal) {
|
||||
set_bit(i, nodemask);
|
||||
}
|
||||
|
||||
for (j = 0; j < ncpu; j++) {
|
||||
if (test_bit(j, localset)) {
|
||||
__dprintf("%d belongs to local set\n", j);
|
||||
}
|
||||
|
||||
if (CPU_ISSET_S(j, cpu_set_size, nodeset)) {
|
||||
__dprintf("%d belongs to node %d\n", j, i);
|
||||
}
|
||||
|
||||
if (test_bit(j, localset) &&
|
||||
CPU_ISSET_S(j, cpu_set_size, nodeset)) {
|
||||
if (nonlocal) {
|
||||
clear_bit(i, nodemask);
|
||||
} else {
|
||||
set_bit(i, nodemask);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
static inline void numa_local(__cpu_set_unit *localset, unsigned long *nodemask)
|
||||
{
|
||||
_numa_local(localset, nodemask, 0);
|
||||
}
|
||||
|
||||
static inline void numa_nonlocal(__cpu_set_unit *localset,
|
||||
unsigned long *nodemask)
|
||||
{
|
||||
_numa_local(localset, nodemask, 1);
|
||||
}
|
||||
|
||||
static inline void numa_all(unsigned long *nodemask)
|
||||
{
|
||||
int i;
|
||||
|
||||
memset(nodemask, 0, PLD_PROCESS_NUMA_MASK_BITS / 8);
|
||||
|
||||
for (i = 0; i < nnodes; i++) {
|
||||
set_bit(i, nodemask);
|
||||
}
|
||||
}
|
||||
|
||||
pid_t master_tid;
|
||||
|
||||
pthread_mutex_t lock = PTHREAD_MUTEX_INITIALIZER;
|
||||
@ -1322,7 +1389,8 @@ void init_sigaction(void)
|
||||
|
||||
master_tid = gettid();
|
||||
for (i = 1; i <= 64; i++) {
|
||||
if (i != SIGKILL && i != SIGSTOP && i != SIGCHLD) {
|
||||
if (i != SIGKILL && i != SIGSTOP && i != SIGCHLD &&
|
||||
i != SIGTSTP && i != SIGTTIN && i != SIGTTOU) {
|
||||
struct sigaction act;
|
||||
|
||||
sigaction(i, NULL, &act);
|
||||
@ -1673,6 +1741,18 @@ static struct option mcexec_options[] = {
|
||||
.flag = NULL,
|
||||
.val = 'M',
|
||||
},
|
||||
{
|
||||
.name = "enable-straight-map",
|
||||
.has_arg = no_argument,
|
||||
.flag = &straight_map,
|
||||
.val = 1,
|
||||
},
|
||||
{
|
||||
.name = "straight-map-threshold",
|
||||
.has_arg = required_argument,
|
||||
.flag = NULL,
|
||||
.val = 'S',
|
||||
},
|
||||
{
|
||||
.name = "disable-sched-yield",
|
||||
.has_arg = no_argument,
|
||||
@ -1709,6 +1789,14 @@ static struct option mcexec_options[] = {
|
||||
.flag = &enable_uti,
|
||||
.val = 1,
|
||||
},
|
||||
#ifdef ENABLE_TOFU
|
||||
{
|
||||
.name = "enable-tofu",
|
||||
.has_arg = no_argument,
|
||||
.flag = &enable_tofu,
|
||||
.val = 1,
|
||||
},
|
||||
#endif
|
||||
{
|
||||
.name = "debug-mcexec",
|
||||
.has_arg = no_argument,
|
||||
@ -2094,10 +2182,10 @@ int main(int argc, char **argv)
|
||||
|
||||
/* Parse options ("+" denotes stop at the first non-option) */
|
||||
#ifdef ADD_ENVS_OPTION
|
||||
while ((opt = getopt_long(argc, argv, "+c:n:t:M:h:e:s:m:u:",
|
||||
while ((opt = getopt_long(argc, argv, "+c:n:t:M:h:e:s:m:u:S:",
|
||||
mcexec_options, NULL)) != -1) {
|
||||
#else /* ADD_ENVS_OPTION */
|
||||
while ((opt = getopt_long(argc, argv, "+c:n:t:M:h:s:m:u:",
|
||||
while ((opt = getopt_long(argc, argv, "+c:n:t:M:h:s:m:u:S:",
|
||||
mcexec_options, NULL)) != -1) {
|
||||
#endif /* ADD_ENVS_OPTION */
|
||||
switch (opt) {
|
||||
@ -2139,6 +2227,10 @@ int main(int argc, char **argv)
|
||||
heap_extension = atobytes(optarg);
|
||||
break;
|
||||
|
||||
case 'S':
|
||||
straight_map_threshold = atobytes(optarg);
|
||||
break;
|
||||
|
||||
#ifdef ADD_ENVS_OPTION
|
||||
case 'e':
|
||||
add_env_list(&extra_env, optarg);
|
||||
@ -2443,6 +2535,13 @@ int main(int argc, char **argv)
|
||||
}
|
||||
}
|
||||
|
||||
/* Fugaku: use FLIB_NUM_PROCESS_ON_NODE if -n is not specified */
|
||||
if (getenv("FLIB_NUM_PROCESS_ON_NODE") && nr_processes == 0) {
|
||||
nr_processes = atoi(getenv("FLIB_NUM_PROCESS_ON_NODE"));
|
||||
__dprintf("%s: using FLIB_NUM_PROCESS_ON_NODE: %d\n",
|
||||
__func__, nr_processes);
|
||||
}
|
||||
|
||||
if (nr_processes > ncpu) {
|
||||
fprintf(stderr, "error: nr_processes can't exceed nr. of CPUs\n");
|
||||
return EINVAL;
|
||||
@ -2572,9 +2671,10 @@ int main(int argc, char **argv)
|
||||
|
||||
desc->cpu = target_core;
|
||||
desc->process_rank = process_rank;
|
||||
|
||||
/* Fugaku specific: Fujitsu node-local rank */
|
||||
if (getenv("PLE_RANK_ON_NODE")) {
|
||||
desc->process_rank = atoi(getenv("PLE_RANK_ON_NODE"));
|
||||
if (getenv("FLIB_RANK_ON_NODE")) {
|
||||
desc->process_rank = atoi(getenv("FLIB_RANK_ON_NODE"));
|
||||
__dprintf("%s: rank: %d, target CPU: %d\n",
|
||||
__func__, desc->process_rank, desc->cpu);
|
||||
}
|
||||
@ -2651,6 +2751,7 @@ int main(int argc, char **argv)
|
||||
desc->heap_extension = heap_extension;
|
||||
|
||||
desc->mpol_bind_mask = 0;
|
||||
desc->mpol_mode = PLD_MPOL_MAX; /* not specified */
|
||||
if (mpol_bind_nodes) {
|
||||
struct bitmask *bind_mask;
|
||||
bind_mask = numa_parse_nodestring_all(mpol_bind_nodes);
|
||||
@ -2664,11 +2765,65 @@ int main(int argc, char **argv)
|
||||
}
|
||||
}
|
||||
}
|
||||
/* Fujitsu TCS specific: mempolicy */
|
||||
else if (getenv("OMPI_MCA_plm_ple_memory_allocation_policy")) {
|
||||
char *mpol =
|
||||
getenv("OMPI_MCA_plm_ple_memory_allocation_policy");
|
||||
|
||||
__dprintf("OMPI_MCA_plm_ple_memory_allocation_policy: %s\n",
|
||||
mpol);
|
||||
|
||||
if (!strncmp(mpol, "localalloc", 10)) {
|
||||
/* MPOL_DEFAULT has the same effect as MPOL_LOCAL */
|
||||
desc->mpol_mode = MPOL_DEFAULT;
|
||||
}
|
||||
else if (!strncmp(mpol, "interleave_local", 16)) {
|
||||
desc->mpol_mode = MPOL_INTERLEAVE;
|
||||
numa_local(desc->cpu_set, desc->mpol_nodemask);
|
||||
}
|
||||
else if (!strncmp(mpol, "interleave_nonlocal", 19)) {
|
||||
desc->mpol_mode = MPOL_INTERLEAVE;
|
||||
numa_nonlocal(desc->cpu_set, desc->mpol_nodemask);
|
||||
}
|
||||
else if (!strncmp(mpol, "interleave_all", 14)) {
|
||||
desc->mpol_mode = MPOL_INTERLEAVE;
|
||||
numa_all(desc->mpol_nodemask);
|
||||
}
|
||||
else if (!strncmp(mpol, "bind_local", 10)) {
|
||||
desc->mpol_mode = MPOL_BIND;
|
||||
numa_local(desc->cpu_set, desc->mpol_nodemask);
|
||||
}
|
||||
else if (!strncmp(mpol, "bind_nonlocal", 13)) {
|
||||
desc->mpol_mode = MPOL_BIND;
|
||||
numa_nonlocal(desc->cpu_set, desc->mpol_nodemask);
|
||||
}
|
||||
else if (!strncmp(mpol, "bind_all", 8)) {
|
||||
desc->mpol_mode = MPOL_BIND;
|
||||
numa_all(desc->mpol_nodemask);
|
||||
}
|
||||
else if (!strncmp(mpol, "prefer_local", 12)) {
|
||||
desc->mpol_mode = MPOL_PREFERRED;
|
||||
numa_local(desc->cpu_set, desc->mpol_nodemask);
|
||||
}
|
||||
else if (!strncmp(mpol, "prefer_nonlocal", 15)) {
|
||||
desc->mpol_mode = MPOL_PREFERRED;
|
||||
numa_nonlocal(desc->cpu_set, desc->mpol_nodemask);
|
||||
}
|
||||
|
||||
__dprintf("mpol_mode: %d, mpol_nodemask: %ld\n",
|
||||
desc->mpol_mode, desc->mpol_nodemask[0]);
|
||||
}
|
||||
|
||||
desc->uti_thread_rank = uti_thread_rank;
|
||||
desc->uti_use_last_cpu = uti_use_last_cpu;
|
||||
desc->thp_disable = get_thp_disable();
|
||||
|
||||
desc->straight_map = straight_map;
|
||||
desc->straight_map_threshold = straight_map_threshold;
|
||||
#ifdef ENABLE_TOFU
|
||||
desc->enable_tofu = enable_tofu;
|
||||
#endif
|
||||
|
||||
/* user_start and user_end are set by this call */
|
||||
if (ioctl(fd, MCEXEC_UP_PREPARE_IMAGE, (unsigned long)desc) != 0) {
|
||||
perror("prepare");
|
||||
|
||||
2
ihk
2
ihk
Submodule ihk updated: 7c4b8d6b40...6e051eed9c
@ -51,6 +51,12 @@ set(MCKERNEL_SRCS
|
||||
${IHK_FULL_SOURCE_DIR}/cokernel/smp/${ARCH}/setup.c
|
||||
)
|
||||
|
||||
if (ENABLE_TOFU)
|
||||
list(APPEND MCKERNEL_SRCS
|
||||
tofu/tof_utofu_main.c
|
||||
)
|
||||
endif()
|
||||
|
||||
if (ENABLE_UBSAN)
|
||||
add_compile_options(-fsanitize=undefined)
|
||||
list(APPEND MCKERNEL_SRCS ubsan.c)
|
||||
|
||||
36
kernel/cls.c
36
kernel/cls.c
@ -58,16 +58,43 @@ struct cpu_local_var *get_cpu_local_var(int id)
|
||||
return clv + id;
|
||||
}
|
||||
|
||||
#ifdef ENABLE_FUGAKU_HACKS
|
||||
void __show_context_stack(struct thread *thread,
|
||||
unsigned long pc, uintptr_t sp, int kprintf_locked);
|
||||
#endif
|
||||
void preempt_enable(void)
|
||||
{
|
||||
#ifndef ENABLE_FUGAKU_HACKS
|
||||
if (cpu_local_var_initialized)
|
||||
--cpu_local_var(no_preempt);
|
||||
#else
|
||||
if (cpu_local_var_initialized) {
|
||||
--cpu_local_var(no_preempt);
|
||||
|
||||
if (cpu_local_var(no_preempt) < 0) {
|
||||
//cpu_disable_interrupt();
|
||||
|
||||
__kprintf("%s: %d\n", __func__, cpu_local_var(no_preempt));
|
||||
__kprintf("TID: %d, call stack from builtin frame (most recent first):\n",
|
||||
cpu_local_var(current)->tid);
|
||||
__show_context_stack(cpu_local_var(current), (uintptr_t)&preempt_enable,
|
||||
(unsigned long)__builtin_frame_address(0), 1);
|
||||
|
||||
//arch_cpu_stop();
|
||||
//cpu_halt();
|
||||
#ifdef ENABLE_FUGAKU_HACKS
|
||||
panic("panic: negative preemption??");
|
||||
#endif
|
||||
}
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
void preempt_disable(void)
|
||||
{
|
||||
if (cpu_local_var_initialized)
|
||||
if (cpu_local_var_initialized) {
|
||||
++cpu_local_var(no_preempt);
|
||||
}
|
||||
}
|
||||
|
||||
int add_backlog(int (*func)(void *arg), void *arg)
|
||||
@ -120,3 +147,10 @@ void do_backlog(void)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#ifdef ENABLE_FUGAKU_HACKS
|
||||
ihk_spinlock_t *get_this_cpu_runq_lock(void)
|
||||
{
|
||||
return &get_this_cpu_local_var()->runq_lock;
|
||||
}
|
||||
#endif
|
||||
|
||||
@ -542,10 +542,42 @@ static int process_msg_prepare_process(unsigned long rphys)
|
||||
}
|
||||
vm->numa_mem_policy = MPOL_BIND;
|
||||
}
|
||||
else if (pn->mpol_mode != MPOL_MAX) {
|
||||
int bit;
|
||||
|
||||
vm->numa_mem_policy = pn->mpol_mode;
|
||||
|
||||
memset(&vm->numa_mask, 0, sizeof(vm->numa_mask));
|
||||
|
||||
for_each_set_bit(bit, pn->mpol_nodemask,
|
||||
PLD_PROCESS_NUMA_MASK_BITS) {
|
||||
if (bit >= ihk_mc_get_nr_numa_nodes()) {
|
||||
kprintf("%s: error: NUMA id %d is larger than mask size!\n",
|
||||
__func__, bit);
|
||||
return -EINVAL;
|
||||
}
|
||||
set_bit(bit, &vm->numa_mask[0]);
|
||||
}
|
||||
|
||||
dkprintf("%s: numa_mem_policy: %d, numa_mask: %ld\n",
|
||||
__func__, vm->numa_mem_policy, vm->numa_mask[0]);
|
||||
}
|
||||
|
||||
proc->uti_thread_rank = pn->uti_thread_rank;
|
||||
proc->uti_use_last_cpu = pn->uti_use_last_cpu;
|
||||
|
||||
proc->straight_map = pn->straight_map;
|
||||
proc->straight_map_threshold = pn->straight_map_threshold;
|
||||
|
||||
#ifdef ENABLE_TOFU
|
||||
proc->enable_tofu = pn->enable_tofu;
|
||||
if (proc->enable_tofu) {
|
||||
extern void tof_utofu_finalize(void);
|
||||
|
||||
tof_utofu_finalize();
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef PROFILE_ENABLE
|
||||
proc->profile = pn->profile;
|
||||
thread->profile = pn->profile;
|
||||
@ -756,7 +788,11 @@ out_remote_pf:
|
||||
syscall_channel_send(resp_channel, &pckt);
|
||||
|
||||
rc = do_kill(NULL, info.pid, info.tid, info.sig, &info.info, 0);
|
||||
#ifndef ENABLE_FUGAKU_HACKS
|
||||
dkprintf("SCD_MSG_SEND_SIGNAL: do_kill(pid=%d, tid=%d, sig=%d)=%d\n", info.pid, info.tid, info.sig, rc);
|
||||
#else
|
||||
kprintf("SCD_MSG_SEND_SIGNAL: do_kill(pid=%d, tid=%d, sig=%d)=%d\n", info.pid, info.tid, info.sig, rc);
|
||||
#endif
|
||||
ret = 0;
|
||||
break;
|
||||
|
||||
@ -766,12 +802,36 @@ out_remote_pf:
|
||||
ret = 0;
|
||||
break;
|
||||
|
||||
case SCD_MSG_CLEANUP_PROCESS:
|
||||
case SCD_MSG_CLEANUP_PROCESS: {
|
||||
extern int process_cleanup_before_terminate(int pid);
|
||||
dkprintf("SCD_MSG_CLEANUP_PROCESS pid=%d, thread=0x%llx\n",
|
||||
packet->pid, packet->arg);
|
||||
|
||||
pckt.msg = SCD_MSG_CLEANUP_PROCESS_RESP;
|
||||
pckt.err = process_cleanup_before_terminate(packet->pid);
|
||||
pckt.ref = packet->ref;
|
||||
pckt.arg = packet->arg;
|
||||
pckt.reply = packet->reply;
|
||||
syscall_channel_send(resp_channel, &pckt);
|
||||
terminate_host(packet->pid, (struct thread *)packet->arg);
|
||||
ret = 0;
|
||||
break;
|
||||
}
|
||||
|
||||
case SCD_MSG_CLEANUP_FD: {
|
||||
extern int process_cleanup_fd(int pid, int fd);
|
||||
pckt.msg = SCD_MSG_CLEANUP_FD_RESP;
|
||||
pckt.err = process_cleanup_fd(packet->pid, packet->arg);
|
||||
dkprintf("SCD_MSG_CLEANUP_FD pid=%d, fd=%d -> err: %d\n",
|
||||
packet->pid, packet->arg, pckt.err);
|
||||
|
||||
pckt.ref = packet->ref;
|
||||
pckt.arg = packet->arg;
|
||||
pckt.reply = packet->reply;
|
||||
syscall_channel_send(resp_channel, &pckt);
|
||||
ret = 0;
|
||||
break;
|
||||
}
|
||||
|
||||
case SCD_MSG_DEBUG_LOG:
|
||||
dkprintf("SCD_MSG_DEBUG_LOG code=%lx\n", packet->arg);
|
||||
|
||||
@ -85,7 +85,11 @@ static int hugefileobj_get_page(struct memobj *memobj, off_t off,
|
||||
}
|
||||
|
||||
memset(obj->pages[pgind], 0, obj->pgsize);
|
||||
#ifndef ENABLE_FUGAKU_HACKS
|
||||
dkprintf("%s: obj: 0x%lx, allocated page for off: %lu"
|
||||
#else
|
||||
kprintf("%s: obj: 0x%lx, allocated page for off: %lu"
|
||||
#endif
|
||||
" (ind: %d), page size: %lu\n",
|
||||
__func__, obj, off, pgind, obj->pgsize);
|
||||
}
|
||||
@ -139,7 +143,6 @@ static void hugefileobj_free(struct memobj *memobj)
|
||||
struct memobj_ops hugefileobj_ops = {
|
||||
.free = hugefileobj_free,
|
||||
.get_page = hugefileobj_get_page,
|
||||
|
||||
};
|
||||
|
||||
void hugefileobj_cleanup(void)
|
||||
@ -275,13 +278,51 @@ int hugefileobj_create(struct memobj *memobj, size_t len, off_t off,
|
||||
|
||||
obj->nr_pages = nr_pages;
|
||||
obj->pages = pages;
|
||||
#ifndef ENABLE_FUGAKU_HACKS
|
||||
dkprintf("%s: obj: 0x%lx, VA: 0x%lx, page array allocated"
|
||||
#else
|
||||
kprintf("%s: obj: 0x%lx, VA: 0x%lx, page array allocated"
|
||||
#endif
|
||||
" for %d pages, pagesize: %lu\n",
|
||||
__func__,
|
||||
obj,
|
||||
virt_addr,
|
||||
nr_pages,
|
||||
obj->pgsize);
|
||||
|
||||
#ifdef ENABLE_FUGAKU_HACKS
|
||||
if (!hugetlbfs_on_demand) {
|
||||
int pgind;
|
||||
int npages;
|
||||
|
||||
#ifndef ENABLE_FUGAKU_HACKS
|
||||
for (pgind = 0; pgind < obj->nr_pages; ++pgind) {
|
||||
#else
|
||||
/* Map in only the last 8 pages */
|
||||
for (pgind = ((obj->nr_pages > 8) ? (obj->nr_pages - 8) : 0);
|
||||
pgind < obj->nr_pages; ++pgind) {
|
||||
#endif
|
||||
if (obj->pages[pgind]) {
|
||||
continue;
|
||||
}
|
||||
|
||||
npages = obj->pgsize >> PAGE_SHIFT;
|
||||
obj->pages[pgind] = ihk_mc_alloc_aligned_pages_user(npages,
|
||||
obj->pgshift - PTL1_SHIFT,
|
||||
IHK_MC_AP_NOWAIT | IHK_MC_AP_USER, 0);
|
||||
if (!obj->pages[pgind]) {
|
||||
kprintf("%s: error: could not allocate page for off: %lu"
|
||||
", page size: %lu\n", __func__, off, obj->pgsize);
|
||||
continue;
|
||||
}
|
||||
|
||||
memset(obj->pages[pgind], 0, obj->pgsize);
|
||||
dkprintf("%s: obj: 0x%lx, pre-allocated page for off: %lu"
|
||||
" (ind: %d), page size: %lu\n",
|
||||
__func__, obj, off, pgind, obj->pgsize);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
obj->memobj.size = len;
|
||||
|
||||
@ -20,10 +20,17 @@
|
||||
* CPU Local Storage (cls)
|
||||
*/
|
||||
|
||||
struct kmalloc_cache_header {
|
||||
struct kmalloc_cache_header *next;
|
||||
};
|
||||
|
||||
struct kmalloc_header {
|
||||
unsigned int front_magic;
|
||||
int cpu_id;
|
||||
struct list_head list;
|
||||
union {
|
||||
struct list_head list;
|
||||
struct kmalloc_cache_header *cache;
|
||||
};
|
||||
int size; /* The size of this chunk without the header */
|
||||
unsigned int end_magic;
|
||||
/* 32 bytes */
|
||||
@ -79,6 +86,7 @@ struct cpu_local_var {
|
||||
ihk_spinlock_t runq_lock;
|
||||
unsigned long runq_irqstate;
|
||||
struct thread *current;
|
||||
void *kernel_mode_pf_regs;
|
||||
int prevpid;
|
||||
struct list_head runq;
|
||||
size_t runq_len;
|
||||
@ -98,6 +106,9 @@ struct cpu_local_var {
|
||||
ihk_spinlock_t migq_lock;
|
||||
struct list_head migq;
|
||||
int in_interrupt;
|
||||
#ifdef ENABLE_FUGAKU_HACKS
|
||||
int in_page_fault;
|
||||
#endif
|
||||
int no_preempt;
|
||||
int timer_enabled;
|
||||
unsigned long nr_ctx_switches;
|
||||
|
||||
@ -36,4 +36,98 @@ int memcheckall(void);
|
||||
int freecheck(int runcount);
|
||||
void kmalloc_consolidate_free_list(void);
|
||||
|
||||
#ifndef unlikely
|
||||
#define unlikely(x) __builtin_expect(!!(x), 0)
|
||||
#endif
|
||||
|
||||
/*
|
||||
* Generic lockless kmalloc cache.
|
||||
*/
|
||||
static inline void kmalloc_cache_free(void *elem)
|
||||
{
|
||||
struct kmalloc_cache_header *current = NULL;
|
||||
struct kmalloc_cache_header *new =
|
||||
(struct kmalloc_cache_header *)elem;
|
||||
struct kmalloc_header *header;
|
||||
register struct kmalloc_cache_header *cache;
|
||||
|
||||
if (unlikely(!elem))
|
||||
return;
|
||||
|
||||
/* Get cache pointer from kmalloc header */
|
||||
header = (struct kmalloc_header *)((void *)elem -
|
||||
sizeof(struct kmalloc_header));
|
||||
if (unlikely(!header->cache)) {
|
||||
kprintf("%s: WARNING: no cache for 0x%lx\n",
|
||||
__func__, elem);
|
||||
return;
|
||||
}
|
||||
|
||||
cache = header->cache;
|
||||
|
||||
retry:
|
||||
current = cache->next;
|
||||
new->next = current;
|
||||
|
||||
if (!__sync_bool_compare_and_swap(&cache->next, current, new)) {
|
||||
goto retry;
|
||||
}
|
||||
}
|
||||
|
||||
static inline void kmalloc_cache_prealloc(struct kmalloc_cache_header *cache,
|
||||
size_t size, int nr_elem)
|
||||
{
|
||||
struct kmalloc_cache_header *elem;
|
||||
int i;
|
||||
|
||||
if (unlikely(cache->next))
|
||||
return;
|
||||
|
||||
for (i = 0; i < nr_elem; ++i) {
|
||||
struct kmalloc_header *header;
|
||||
|
||||
elem = (struct kmalloc_cache_header *)
|
||||
kmalloc(size, IHK_MC_AP_NOWAIT);
|
||||
|
||||
if (!elem) {
|
||||
kprintf("%s: ERROR: allocating cache element\n", __func__);
|
||||
continue;
|
||||
}
|
||||
|
||||
/* Store cache pointer in kmalloc_header */
|
||||
header = (struct kmalloc_header *)((void *)elem -
|
||||
sizeof(struct kmalloc_header));
|
||||
header->cache = cache;
|
||||
|
||||
kmalloc_cache_free(elem);
|
||||
}
|
||||
}
|
||||
|
||||
static inline void *kmalloc_cache_alloc(struct kmalloc_cache_header *cache,
|
||||
size_t size)
|
||||
{
|
||||
register struct kmalloc_cache_header *first, *next;
|
||||
|
||||
retry:
|
||||
next = NULL;
|
||||
first = cache->next;
|
||||
|
||||
if (first) {
|
||||
next = first->next;
|
||||
|
||||
if (!__sync_bool_compare_and_swap(&cache->next,
|
||||
first, next)) {
|
||||
goto retry;
|
||||
}
|
||||
}
|
||||
else {
|
||||
kprintf("%s: calling pre-alloc for 0x%lx...\n", __func__, cache);
|
||||
|
||||
kmalloc_cache_prealloc(cache, size, 384);
|
||||
goto retry;
|
||||
}
|
||||
|
||||
return (void *)first;
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user