daa7526127
rusage and ihklib: Fix out-of-memory reporting and cleanup
...
1. Fix OOM: Count memory usage only when allocation succeeded
2. Fix OOM: Make user allocation fail when memory is running out
3. Fix OOM: Move rusage_init() before numa_init()
4. Cleanup: Rename ihkconfig/ihkosctl functions
5. Cleanup: Pass event type to eventfd()
6. Cleanup: arch/.../rusage.h --> arch/.../arch_rusage.h
2017-09-20 15:11:57 +09:00
c5d71c325d
Modify copyright of files related to XPMEM
2017-09-20 15:11:57 +09:00
aa7cb970c4
ihk_os_getrusage(): Compile LWK-specific results in mcctrl
...
1. User asks mcctrl for the result via ihk_os_getrusage() with passing void *
2. mcctrl compiles the results and passes them to the user
3. User interprets it by using the type defined in the LWK-specific header
2017-09-20 15:03:45 +09:00
973d8ddd2c
remove kernel/gencore.c
...
That file is not compiled (there are arch/*/kernel/gencore.c variants)
2017-09-12 18:27:28 +09:00
a491e49bbc
syscall.c: fix misleading indent
...
This is a non-fonctional change, brought to attention by newer gcc warnings
2017-09-12 18:27:28 +09:00
2a46fd0b2d
compiler.h: take in recent linux updates for newer gcc support
...
Had to remove from original compiler-gcc:
- things that deal with types, e.g. READ_ONCE macro and friends;
- #define barrier(). This one would be better there at some point.
2017-09-12 18:27:28 +09:00
99a45f20c2
eliminate POSTK_DEBUG_TEMP_FIX_55: fixes preemption bug
2017-09-12 18:21:56 +09:00
43db8e2d65
remove osnum from mckernel kargs. refs #338
2017-09-12 14:53:44 +09:00
4eed36f124
procfs: support /proc/pid/status State field
...
refs #445
2017-09-12 13:37:27 +09:00
a05b6e1ba8
Expand dump-functions for excluding user/unused memory (This is rebase commit for merging to development)
2017-09-11 15:49:04 +09:00
325082a571
adapt "out of tree build" for arm64
2017-09-11 15:29:53 +09:00
0278a876db
disable POSTK_DEBUG_* on x86_64
2017-09-07 22:20:22 +09:00
9989f41fd3
add arm64 support
...
- add arm64 dependent codes with GICv3 and SVE support
- fix bugs based on architecture separation requests
2017-09-05 15:06:27 +09:00
704096b139
profile: fix process level aggregation bug
2017-09-04 09:07:58 +09:00
99ca46663b
mcctrl, mexec: fix a bunch of warnings
2017-09-04 08:53:32 +09:00
4b3f220659
qlmpi: fix debugging part of swap
2017-08-31 14:04:11 +09:00
236a072311
Add qlmpi and swap to mckernel (This is rebase commit for merging to development)
2017-08-29 15:04:58 +09:00
74f15783d2
ihk_os_getrusage(): Add per-page-size memory usage accounting
2017-08-17 12:49:34 +09:00
184c2d311c
fileobj_flush_page(): Not flush when MF_HOST_RELEASED
2017-08-17 12:49:34 +09:00
6d4d6440aa
terminate(): clean-up and formatting
2017-08-08 11:12:55 +09:00
9194742de8
do_mmap(): fix calculation of search_free_space() hint
2017-08-01 16:24:07 +09:00
effde241b9
support uti_attr for utility thread offloading
2017-07-25 13:03:48 +09:00
4cd1c120fa
profile: add PROFILE_remote_page_fault
2017-07-23 19:00:00 +09:00
bf5ac7afc8
remote_flush_tlb_array_cpumask(): bundle remote TLB invalidations
2017-07-21 15:34:48 +09:00
6714161c25
profile remote TLB invalidations
2017-07-20 22:28:25 +09:00
992a292c08
profile: better time breakdown and exclusion of idle cycles
2017-07-20 17:36:34 +09:00
64c2e437c6
open: check filename address (re-commit)
2017-07-19 11:37:55 +09:00
dd9675d65e
NUMA: only print a short summary at boot time
2017-07-19 09:11:44 +09:00
51ed8dce06
numa_init(): fix rusage memory counting
2017-07-19 08:23:05 +09:00
01f5e46865
revert 2d7890731e
2017-07-18 12:13:48 +09:00
38961fca78
Revert "do_fork(): RLIMIT_NPROC check"
...
This reverts commit 035e7913d8 .
2017-07-13 04:13:41 +09:00
2d7890731e
add_process_memory_range: do not initialize page when did not present phys page
2017-07-18 00:45:18 +09:00
7d181fccd9
open: check filename address
2017-07-18 00:09:39 +09:00
bd75e80df2
terminate: fix to reference freed pointer
2017-07-17 19:32:08 +09:00
035e7913d8
do_fork(): RLIMIT_NPROC check
...
1. mcexec sets RLIMIT_NPROC to the number of mcexec threads.
2. do_fork() gets the current number of threads by calling rusage function.
3. do_fork() returns -EAGAIN when the limit is exceeded.
2017-07-12 20:42:38 +09:00
7d38c7c147
delete debug print
2017-07-14 10:13:22 +09:00
a801bcc591
delete rusage.c
2017-07-14 09:52:33 +09:00
d7b8e7f4f4
fix to count user pages
...
refs #864
2017-07-14 09:51:39 +09:00
0f58e9e77d
NUMA: expose correct /sys/devices/system/node/nodeX/meminfo
2017-07-07 00:59:32 +09:00
72e3f5ee50
ihk_mc_get_ikc_cpu(): Get IKC destination CPU
2017-07-11 20:20:40 +09:00
35b36c2d33
move_pages_smp_handler(): more parallelization
2017-07-08 18:36:13 +09:00
632611d78c
mbind(): debug msg
2017-07-08 18:36:13 +09:00
d48d44d365
move_pages(): fix barrier in parallel implementation
2017-07-08 18:36:13 +09:00
4c0f401424
move_pages(): parallel implementation v1
2017-07-08 18:36:05 +09:00
7a606baad4
move_pages(): sequential implementation
2017-07-08 18:36:05 +09:00
4c6c66555e
memset_smp(): parallel memset
2017-07-08 18:36:05 +09:00
da7421e8ee
memdebug: more detailed error report
2017-07-08 18:36:05 +09:00
f81722c63b
__mckernel_free_pages_in_allocator(): fix deallocation of invalid physical range
2017-07-08 18:35:50 +09:00
201a7e2595
Red-black tree based physical memory management
2017-07-08 18:26:51 +09:00
5cdd194856
Port Linux red-black trees
2017-07-08 18:12:01 +09:00