Unusual memory allocation problem

Chetan Kumar (chetan@protocol.ece.iisc.ernet.in)
Mon, 14 Sep 1998 22:04:27 +0530 (IST)


This message is in MIME format. The first part should be readable text,
while the remaining parts are likely unreadable without MIME-aware tools.
Send mail to mime@docserver.cac.washington.edu for more info.

--277908288-1968126134-905790867=:18581
Content-Type: TEXT/PLAIN; charset=US-ASCII

Hi
Take a look at this piece of code, I compiled this with gcc ver
2.7.2.1 on linux box 2.0.30, with i486, 8M ram and 16M swap, to my surpise
I did not get any error, the code succeeded allocating 400*2M mem !!!!

On the other hand on a sloaries I could promplty get error Could not find
free space.

Any this buggy !?!
with thanks

chetan . S
please make a cc to prem@ece.iisc.ernet.in
E-mail chetan@protocol.ece.iisc.ernet.in

WEB PAGE - http://pclab.ece.iisc.ernet.in/chetan

Phone
work place
(080)3092282
res.
(080)3349218
(080)3347220

--277908288-1968126134-905790867=:18581
Content-Type: TEXT/PLAIN; charset=US-ASCII; name="m2mb.c"
Content-Transfer-Encoding: BASE64
Content-ID: <Pine.LNX.3.95.980914220427.18581D@protocol.ece.iisc.ernet.in>
Content-Description:

I2luY2x1ZGU8c3RkaW8uaD4NCg0KbWFpbigpDQp7DQogIGNoYXIgKmNbNDAw
XTsNCiAgaW50IGk7DQogIGZvcihpPTA7aTw0MDA7aSsrKQ0KICB7DQogICAg
aWYoKGNbaV0gPSBtYWxsb2MoMTAyNCoyMDAwKSkgPT0gTlVMTCkNCiAgICAg
IHBlcnJvcigiQ291bGQgbm90IGFsbG9jYXRlIDJNQiIpOw0KICAgIGVsc2UN
CiAgICAgIHByaW50ZigiXG5TdWNjZXNzICVkIHRoIHRpbWUiLGkpOyANCiAg
fQ0KfQ0K
--277908288-1968126134-905790867=:18581--

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