Boot with option mem=4096M : #error28

Hello,

I have OpenSuse11.4 32bits, 4Gb of RAM


ion@alws36:~> free
             total       used       free     shared    buffers     cached
Mem:       3933064    1137908    2795156          0      36284     651688
-/+ buffers/cache:     449936    3483128
Swap:      2099196          0    2099196

I would like to add the option mem=4096M to make some software works.


/boot/vmlinuz-2.6.37.6-0.5-desktop root=/dev/disk/by-id/ata-ST350041\
3AS_6VMSYV5L-part6 resume=/dev/disk/by-id/ata-ST3500413AS_6VMSYV5L-part5 splash\
=silent quiet showopts vga=0x31a **mem=4096M**

but as long as I try with more than 512M, I have the error :


error 28 selected item cannot fit into memory

I haven’t found any solution by looking on this forum and with google…

Thanks

It doesn’t work because the kernel doesn’t believe your lie. You don’t really have 4GB physical memory, it will always be a little less, if only because of various holes in the memory space. But you are already using the max physical memory so what is it you are trying to achieve?

I tried also with less, like mem=3500M, but it was not working neither. (except if I used less than 512Mo)
I’d like to use a National Instrument drivers which give me a “to much memory” error (it accepts 4GB as maximum), and this tip to make it knows there is no more memory than 4GB works on an other computer.

mem=XXX only tells the Linux kernel not to use beyond that limit and is useful for simulating less RAM. However your driver, which is probably not part of the Linux kernel may not pay attention to this. Why not ask the manufacturer why the message?