A small utility to override values returned by the sysconf system call. Expects environment variables to describe what value to override.
SCW<number>=<value> LD_PRELOAD=system-config-wrapper.so <command>
Configuration numbers are defined as enum values in /usr/include/bits/confname.h
.
These are likely pretty stable because change would break existing binaries.
To make the sysconf
call report 256 processors:
SCW84=256 LD_PRELOAD=system-config-wrapper.so <application>
To make the sysconf
call report 512 byte pages:
SCW30=512 LD_PRELOAD=system-config-wrapper.so <application>