Re: [systemd-devel] [PATCH] Detect page size runtime

2011-03-18 Thread Jan Engelhardt
On Saturday 2011-03-19 03:10, Lennart Poettering wrote: >On Fri, 18.03.11 03:44, fykc...@gmail.com (fykc...@gmail.com) wrote: > >> Hi all, >> >> Systemd hardcode page size as 4096(in macro.h), this is not always correct: >> """ Some architectures support multiple machine types with diffenent >> p

Re: [systemd-devel] [PATCH] Detect page size runtime

2011-03-18 Thread Lennart Poettering
On Fri, 18.03.11 03:44, fykc...@gmail.com (fykc...@gmail.com) wrote: > Hi all, > > Systemd hardcode page size as 4096(in macro.h), this is not always correct: > """ Some architectures support multiple machine types with diffenent > page sizes, and some machine types even support multiple page siz

[systemd-devel] [PATCH] Detect page size runtime

2011-03-17 Thread fykc...@gmail.com
Hi all, Systemd hardcode page size as 4096(in macro.h), this is not always correct: """ Some architectures support multiple machine types with diffenent page sizes, and some machine types even support multiple page sizes themselves. """ This patch tries to detect page size runtime by sysconf(_SC_