Announcement

Collapse
No announcement yet.

Lightweight Guard Pages For Linux Showing 5x Speed-Up For Memory Mapping Invocations

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Developer12
    replied
    Originally posted by curfew View Post
    If you are able to print all the calls into a terminal without choking your whole machine, then this optimization will not have any slightest effect in your life ever.

    Yes, it's that's small.
    That's for the *creation* of these areas. The problematic overhead occurs at runtime, as areas that have already been created are set up and torn constantly during context switches, as well as the accumulated memory taken up by the required bookkeeping.

    Leave a comment:


  • Hi-Angel
    replied
    Originally posted by curfew View Post
    If you are able to print all the calls into a terminal without choking your whole machine, then this optimization will not have any slightest effect in your life ever.

    Yes, it's that's small.
    I guess you are right. OTOH, I was rather curious in terms "is it useful on desktop"? Because, for example, Glibc rseq AFAIK is still only used for `getcpu`, and `getcpu` performance AFAIK isn't interesting to an average user. This `mmap` with `PROT_NONE` OTOH I see being used in desktop apps, so imagine there might be some CPU-intensive workflow where that might help a tiny bit.

    Leave a comment:


  • curfew
    replied
    Originally posted by Hi-Angel View Post
    Seems to be pretty useful. I see lots of `mmap`s being called with `PROT_NONE` every second on my laptop:

    Code:
    sudo bpftrace -e 'tracepoint:syscalls:sys_enter_mmap{ if (! args->prot) {printf("mmap called by PID %d (%s): addr=%x, prot=%x\n", pid, comm, args->addr, args->prot);} }'
    ​
    If you are able to print all the calls into a terminal without choking your whole machine, then this optimization will not have any slightest effect in your life ever.

    Yes, it's that's small.

    Leave a comment:


  • Hi-Angel
    replied
    Seems to be pretty useful. I see lots of `mmap`s being called with `PROT_NONE` every second on my laptop:

    Code:
    sudo bpftrace -e 'tracepoint:syscalls:sys_enter_mmap{ if (! args->prot) {printf("mmap called by PID %d (%s): addr=%x, prot=%x\n", pid, comm, args->addr, args->prot);} }'
    ​

    Leave a comment:


  • TheDcoder
    replied
    Wow, this looks like a major performance improving patch! Hope it lands soon

    Leave a comment:


  • Lightweight Guard Pages For Linux Showing 5x Speed-Up For Memory Mapping Invocations

    Phoronix: Lightweight Guard Pages For Linux Showing 5x Speed-Up For Memory Mapping Invocations

    Patches posted this week by Oracle's Lorenzo Stoakes are the latest attempt at lightweight guard pages for the Linux kernel...

    Phoronix, Linux Hardware Reviews, Linux hardware benchmarks, Linux server benchmarks, Linux benchmarking, Desktop Linux, Linux performance, Open Source graphics, Linux How To, Ubuntu benchmarks, Ubuntu hardware, Phoronix Test Suite
Working...
X