i386 Linux kernels can be configured for a 2, 3 or 4 GiB limit on virtual address space per process, AFAIK. Is there something I can query in /proc or elsewhere to tell how the currently-running kernel was configured?
Update: Thanks for the answers on how to query for 4G. Any way I can query for 2G vs 3G?