diff options
author | Andreas Kling <awesomekling@gmail.com> | 2018-11-01 16:23:12 +0100 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2018-11-01 16:23:12 +0100 |
commit | c70afd045e5b91837e77dcc7c54a44ddec39aab7 (patch) | |
tree | 09e9db03dc1587c839002bc5e8e2da93bd065357 /Kernel/init.cpp | |
parent | 9da4864a9a123ddc8b2a1d13ee86a727cac7eb67 (diff) | |
download | serenity-c70afd045e5b91837e77dcc7c54a44ddec39aab7.zip |
Use a freelist for GDT entries.
Tweak the kmalloc space layout a bit. Get the spawn stress test up
and running again.
Diffstat (limited to 'Kernel/init.cpp')
-rw-r--r-- | Kernel/init.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Kernel/init.cpp b/Kernel/init.cpp index 1c6763d007..96ec5be317 100644 --- a/Kernel/init.cpp +++ b/Kernel/init.cpp @@ -106,13 +106,13 @@ static void spawn_stress() { dword lastAlloc = sum_alloc; - for (unsigned i = 0; i < 100; ++i) { + for (unsigned i = 0; i < 10000; ++i) { int error; Process::createUserProcess("/bin/id", (uid_t)100, (gid_t)100, (pid_t)0, error, nullptr, tty0); - kprintf("malloc stats: alloc:%u free:%u\n", sum_alloc, sum_free); + kprintf("malloc stats: alloc:%u free:%u page_aligned:%u eternal:%u\n", sum_alloc, sum_free, kmalloc_page_aligned, kmalloc_sum_eternal); kprintf("delta:%u\n", sum_alloc - lastAlloc); lastAlloc = sum_alloc; - sleep(600); + sleep(60); } for (;;) { asm volatile("hlt"); |