Blog · · 8 min to read
Enough for the card, too much for the computer
We tried making animals with model-maker on a graphics card with 12 GB of memory. The card had room every time it made an animal. The computer's own memory did not: in 7 of 9 jobs it went over the bar we had set, for a few seconds. So the coming animals version will not promise 12 GB cards.
Animals are coming to model-maker in version 0.5. Before we promise which computers can make them, we measure it. We test on two graphics cards, one with 16 GB of memory and one with 12 GB. This week we asked: can the 12 GB card make animals? The answer surprised us a little. The card was fine. The rest of the computer was not.
Two kinds of memory
Card memory. A graphics card has its own memory, separate from the computer's. The AI models that paint and shape an object run on the card, so they must fit there while they work. On many cards this is 8, 12 or 16 GB.
Main memory. This is the computer's own memory, often called RAM. Every program uses it: your browser, the system, and model-maker. Home computers often have 16, 32 or 64 GB.
Some of what a program keeps in main memory, the computer can let go of when it runs short. A copy of a file read from the disk, for example: it can be dropped and read again later. The rest the program holds: the computer cannot take it away without stopping the program. That held part is what we measure here.
To fit a 12 GB card, model-maker does not load the whole painting model onto the card at once. It keeps parts of it in main memory and moves each one onto the card when its turn comes. That saves card memory, and spends main memory. It is one place where main memory goes; we have not yet measured how much of the highest point it explains.
The bars we set first
Before anything ran, we wrote down what a pass would mean. The two that matter here:
- The card: at every reading, the card's memory in use stays at least 512 MiB under its size. That leaves room for the screen and small programs.
- Main memory: we assume someone with a 12 GB card has a computer with 32 GB of memory. A job may hold at most 70 % of that, 22.4 GB, at every reading, so the system and a browser still fit beside it. The 22.4 GB is our own bar, not a point where a computer was seen to break.
One missed reading would be a fail. We chose that before the run, too.
What happened
We made 30 animals and 5 objects in 9 jobs, three or four animals to a job, and read the memory every 0.6 seconds. This was one run, on one computer with one 12 GB card. That computer has more than 32 GB of memory, so nothing ran out of memory in the 9 jobs, and no program was refused. We did not try a computer with 32 GB, or 24 GB.
The card had room every time it made an animal. Its highest reading while making animals was about 11 GB of the 12. None of the 31,889 readings taken while it made animals broke its bar. The bar was judged on the animals only. The 5 jobs that also made an object read up to 11,851 MiB while making it, about 11.6 of the 12 GB, leaving 437 MiB spare: inside the 512 MiB margin in 92 to 99 readings a job.
Main memory did not. For long stretches, a job held about 20 GB. But in 7 of the 9 jobs it went over 22.4 GB, to between 24.4 and 25.7 GB. Each time it lasted only a few seconds: 5 to 17 seconds in a job of 33 to 52 minutes. That is short, but a computer that runs out of memory does not care how long it lasted. None did here: this computer had more than enough.


The two objects that went highest reached about the same: 25.1 GB. So the highest point is not something only animals do.
One more thing went wrong: in two jobs, an animal that came right after an object was not made at all. That is a separate fault we are looking into. Either way, by the rule we set first, the test failed.
We had seen a number like this before
Model-maker 0.3.3, released this week, raised many of the libraries it runs on, for security fixes. While we tested it, the highest main memory during painting on the 12 GB card rose from 23.2 to 25.5 GB. Why, we do not know yet. That figure is counted differently: it includes the copies of files the computer can drop, so it is near the numbers above but not the same measurement.
The question for 0.3.3 was simpler: is a computer with 24 GB of memory enough? So we fenced one object in. We ran a single chair on the 12 GB card inside a limit of 23 GiB. A GiB is a slightly bigger unit than a GB: 23 GiB is about 24.7 GB. A computer sold as 24 GB has 24 GiB, about 25.8 GB, and the system needs some of it, so 23 GiB is about the most such a computer could give one program. We also turned off swap: the computer's habit of moving memory to the disk when it runs short, which would hide the problem and slow everything down.
After 6 minutes, the computer's out-of-memory killer stopped it: when memory runs out, the system stops a program rather than freeze. At that moment the program held about 18 GB, less than the 19 GB it had held three minutes earlier. The rest of the counted memory was memory the computer did not free in time. Why, we do not know yet. What this test shows is only that the chair did not finish inside the limit.

So model-maker 0.3.3 says: with a 12 GB card, have 32 GB of memory. With a 16 GB card, 24 GB or more is still enough.
What it means
The card is not the limit. Main memory is. A 12 GB card has room for model-maker's animals. A computer with 32 GB of memory, by our bar, does not. That is a bar, not a test on such a computer: none was tried.
So model-maker 0.5 will not promise animals on 12 GB cards. There are two ways it could later: a computer with more than 32 GB, or a change to how model-maker keeps the painting model's parts in main memory. That change would be its own plan, with its own bars, set before it runs.
The same goes for objects in part: they reach the same height, which on a 32 GB computer would leave less room for everything else than our bar asks. That is on our list.
Animals on the 16 GB card are being measured the same way now. There is no result yet.
Words used
- Card memory: the graphics card's own memory, where the AI models run.
- Main memory (RAM): the computer's own memory, shared by every program.
- Held memory: the part of a program's memory the computer cannot take back without stopping it.
- GB and GiB: two units of memory. A GiB is about 7 % bigger than a GB.
- Swap: space on the disk the computer can use as slow extra memory.
- Out-of-memory killer: the part of the system that stops a program when memory runs out.
- Bar: the result a test must reach to count as a pass, written down before it runs.