i have the same problem with the linux locking up when i run out of
memory. version .97 + 32mb patches applied by hand (a number of things
have changed), 386-40 with 20Meg ram, no swap. is the mm returning
failure (or not in this case) when it runs out of memory, or just
waiting for memory to free up, or just plain locking up somewhere?
it lockes up around 17 or 18(000,000).
#include <stdio.h>
extern void * calloc(size_t,size_t);
main()
{
void * a, *b;
unsigned long size = 0;
while ( a = calloc ( (size_t) 1000000,1 ) ) {
size += 1000000;
printf("up to: %d\n",size); fflush(stdout);
b = a;
}
free(b);
printf("up to: %d\n",size); fflush(stdout);
return 0;
}
croutons.
croutons@dartmouth.edu
croutons@crunchy.UUCP
ps: i found the problem with the /dev/tty thingy. it was a silly
precedence thing, i forgot a pair of ()'s. (grumble grumble).
thanks for those who helped out.
| Linus Torvalds | Linux 2.6.27-rc8 |
| Greg KH | [patch 00/71] 2.6.26-stable review |
| Dmitry Torokhov | 2.6.27-rc8+ - first impressions |
| jimmy bahuleyan | Re: Hibernation considerations |
git: | |
| Petr Baudis | [FYI][PATCH] Customizing the WinGit installer |
| Jan Hudec | Re: [PATCH] Move all dashed form git commands to libexecdir |
| Jay Soffian | Re: [PATCH] gitweb: Support caching projects list |
| Mark Levedahl | Allowing override of the default "origin" nickname |
| Richard Stallman | Real men don't attack straw men |
| Leon Dippenaar | New tcp stack attack |
| Luca Dell'Oca | Authenticate squid in Active Directory |
| Todd Pytel | IDE or SCSI virtual disks for VMWare image? |
| Jarek Poplawski | Re: [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock(). |
| Matthew Dharm | Re: [RFC] Patch to option HSO driver to the kernel |
| Ingo Molnar | Re: [bug] stuck localhost TCP connections, v2.6.26-rc3+ |
| David Miller | Re: [GIT PULL] [IPV6] COMPAT: Fix SSM applications on 64bit kernels. |
