Re: lost memory on a 4GB amd64

From: Andrew Walrond
Date: Fri Sep 24 2004 - 03:17:57 EST


On Monday 20 Sep 2004 11:26, Sergei Haller wrote:
>
> fang ~sergei> ./memtest 1000000000
> allocate 1000000000: ok
>
> Message from syslogd@fang at Mon Sep 20 18:03:16 2004 ...
> fang kernel: Oops: 0000 [1] PREEMPT SMP
>

Works fine on my 4Gb Tyan thunder K8W machine, even running from an xterm:
andrew@orac ~ $ uname -a
Linux orac.walrond.org 2.6.8.1 #3 SMP Sun Aug 29 17:36:49 BST 2004 x86_64
unknown unknown GNU/Linux

andrew@orac ~ $ free -m
total used free shared buffers cached
Mem: 4008 263 3744 0 0 66
-/+ buffers/cache: 195 3812
Swap: 3827 25 3802

andrew@orac ~ $ ./memtest 1000000000
allocate 1000000000: ok
set them to 0... done
andrew@orac ~ $ ./memtest 4000000000
allocate 4000000000: ok
set them to 0... done
andrew@orac ~ $ ./memtest 5000000000
allocate 5000000000: ok
set them to 0... done
andrew@orac ~ $

The last one took a while (using 1Gb swap) but it still worked fine.

Without swap:

andrew@orac ~ $ sudo swapoff -a
andrew@orac ~ $ free -m
total used free shared buffers cached
Mem: 4008 237 3770 0 1 54
-/+ buffers/cache: 181 3826
Swap: 0 0 0
andrew@orac ~ $ ./memtest 1000000000
allocate 1000000000: ok
set them to 0... done
andrew@orac ~ $ ./memtest 2000000000
allocate 2000000000: ok
set them to 0... done
andrew@orac ~ $

Still fine.

Andrew Walrond
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/