From 181fe4144e00e269ddc9471712a312d0ad4c8ab8 Mon Sep 17 00:00:00 2001
From: Murray Stokely
Technical contact: Kris Kennaway
+ +setproctitle() calls are a serious + performance bottleneck in a default pgsql configuration (they are + called at least once per query, which might be thousands of times per + second - I measured a performance impact of about 33% on sysbench).
+ +One idea for avoiding the syscall (and global sysctl lock) overhead + for this kind of thing would be a memory page shared between kernel + and userland which libc could read/write to access things like the + process title. There are potentially many other data values that + could be optimized by a similar method. This is presumably a well + established technique in other OSes.
+ +This project requires mentoring/review/planning with someone with + significant VM experience to make sure this approach + works properly. Done incorrectly, this could result in fairly + massive security holes, performance issues (perhaps not visible in + simple benchmarks), etc.
+ +Requirements:
+