Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: 3000+ death list and 70MB save size  (Read 1938 times)

coalboat

  • Bay Watcher
    • View Profile
3000+ death list and 70MB save size
« on: November 27, 2021, 11:16:48 am »

All three of my caverns are re-animating and the corpses are rolling all over the place more and more, including jabberers, cave crocodiles, and various forgotten beasts. To make it worse, every severed head and hand counts as a separate entry on that list.

I remember that the death list has bad effects on the game. My save is already 70MB. Does the save size simply go up or does it eventually reach a certain equilibrium? I have many plans for this fort but if the save goes over 200MB I probably will have to abandon it.
Logged

Uthimienure

  • Bay Watcher
  • O frabjous day!!
    • View Profile
Re: 3000+ death list and 70MB save size
« Reply #1 on: November 27, 2021, 12:56:34 pm »

I can't comment about if the save size will decrease because I didn't pay attention to before/after (mine is 425MB after 22 years with population 297 in a 5x5 with 1st & 2nd caves explored), this might be of interest if you don't already use it:

In DFHack, run:
fix/dead-units
Removes uninteresting dead units from the unit list. Doesn’t seem to give any noticeable performance gain, but migrants normally stop if the unit list grows to around 3000 units, and this script reduces it back.

(edit: had 41MB but that was zipped)
« Last Edit: November 27, 2021, 01:01:14 pm by Uthimienure »
Logged
FPS in Gravearmor (925+ dwarves) is 2-5 (v0.47.05 lives on).
"I've never really had issues with the old DF interface (I mean, I loved even 'umkh'!)" ... brewer bob
As we say in France: "ah, l'amour toujours l'amour"... François D.

Saiko Kila

  • Bay Watcher
  • Dwarven alchemist
    • View Profile
Re: 3000+ death list and 70MB save size
« Reply #2 on: November 27, 2021, 01:54:24 pm »

Save may also shrink - size of my save recently slightly decreased after I dropped over two hundred enemies into magma flow. Still, usually it goes up.  My save went from ~62 MiB on year 1, to 85 MiB on year 10, to ~92 MiB on year 15, for example, but I don't have 3000 dead yet (total units including dead is about 2800). Size of savefile depends first on size of the world. For this reason I prefer medium words at most, or smaller.

I would care more about performance than savesize, and less items (and critters) should help with that. How many frames per second on average you get? In my experience the FPS death comes before savefile is too big, but of course that may be different for bigger worlds.

Logged

coalboat

  • Bay Watcher
    • View Profile
Re: 3000+ death list and 70MB save size
« Reply #3 on: November 27, 2021, 10:20:29 pm »

425MB is really a huge save. I set my pop cap at 100, and the embark is 4x4. I hope I can keep it under 200MB by year 20. I didn't know that dead unit list affects migrants. I'll try that when I need more migrants.

I cap FPS at 20 and so far it never goes lower than that. I used the default settings when I genned the world, not sure how big the world is.

edit:
I have yearly back up and I delete the old ones when a year passes. I think I read somewhere that frequently creating and deleting large files can damage the hard drive. Is that true?
« Last Edit: November 27, 2021, 10:28:22 pm by coalboat »
Logged

Mobbstar

  • Bay Watcher
  • aka Mossbird
    • View Profile
    • my website
Re: 3000+ death list and 70MB save size
« Reply #4 on: November 28, 2021, 06:20:12 am »

I have yearly back up and I delete the old ones when a year passes. I think I read somewhere that frequently creating and deleting large files can damage the hard drive. Is that true?

Depending on the filesystem, "deleting" might simply mean "allow other files to overwrite the space".  In any case, a few hundred filewrites shouldn't damage your drive noticably.  That's more something to keep in mind when writing and deleting files 24/7 in a server program.

Uthimienure

  • Bay Watcher
  • O frabjous day!!
    • View Profile
Re: 3000+ death list and 70MB save size
« Reply #5 on: November 28, 2021, 07:42:01 am »

425MB is really a huge save. ...
In init.txt
[COMPRESSED_SAVES:NO]
Logged
FPS in Gravearmor (925+ dwarves) is 2-5 (v0.47.05 lives on).
"I've never really had issues with the old DF interface (I mean, I loved even 'umkh'!)" ... brewer bob
As we say in France: "ah, l'amour toujours l'amour"... François D.

coalboat

  • Bay Watcher
    • View Profile
Re: 3000+ death list and 70MB save size
« Reply #6 on: November 28, 2021, 10:50:56 am »

In any case, a few hundred filewrites shouldn't damage your drive noticably.  That's more something to keep in mind when writing and deleting files 24/7 in a server program.

That's good to hear.

[COMPRESSED_SAVES:NO]

My setting is YES. I'll check how much it is uncompressed tomorrow.
Logged