test code to indicate the difference between Linux memory allocation and FreeBSD