I am writing a simulation program, and I define a struct Node, of about 544 bytes. In the program I need to malloc
millions of nodes. Each time when the maximum number reaches almost 3 million,
newnode=malloc(Node)
will return NULL. But this just takes about 250MB of memory. Can someone tell me why this happens and how to solve this problem?