Jump to content
You must now use your email address to sign in [click for more info] ×

RAM Usage Limit setting - why fixed range?


Recommended Posts

In V1 of Affinity, I was able to override the RAM Usage Limit (or at least I think it was overridden) to a value larger than the slider range by manually typing a value into the field. I believe this static range was subsequently fixed, although I'm not certain of that

 

image.png.a1f738e590ee70d20ddad6b7317260b1.png

 

In V2, that no longer works. It resets to 65536 MB. Yet I have 128GB in my machine.

So  why is this slider range not being set to 0 - "Maximum Physical RAM"?

I frequently have all three products open simultaneously with several files loaded in each one. It would be nice if Affinity products could actually exploit all of the RAM I have. 

 

Link to comment
Share on other sites

Not sure about Windows but on my Mac the V1 apps enforced a 65536 MB limit, just like V2 does now.

14 minutes ago, rvst said:

I frequently have all three products open simultaneously with several files loaded in each one.

I am fairly sure each Affinity app can use up to 65536 MB, so I do not think there would be any benefit to setting all of them to more than that unless one of them actually needed more RAM than that.

And of course, it would be pointless to set the max to all the installed RAM because the OS will always reserve some of it for its own use. If it did not it would crash the computer.

All 3 1.10.8, & all 3 V2.4.1 Mac apps; 2020 iMac 27"; 3.8GHz i7, Radeon Pro 5700, 32GB RAM; macOS 10.15.7
Affinity Photo 
1.10.8; Affinity Designer 1.108; & all 3 V2 apps for iPad; 6th Generation iPad 32 GB; Apple Pencil; iPadOS 15.7

Link to comment
Share on other sites

1 hour ago, rvst said:

In V2, that no longer works. It resets to 65536 MB. Yet I have 128GB in my machine.

In V2 I can still override the slider value and it sticks after restarting the app

 

Windows 11

AFPhoto

To save time I am currently using an automated AI to reply to some posts on this forum. If any of "my" posts are wrong or appear to be total b*ll*cks they are the ones generated by the AI. If correct they were probably mine. I apologise for any mistakes made by my AI - I'm sure it will improve with time.

Link to comment
Share on other sites

2 hours ago, R C-R said:

the OS will always reserve some of it for its own use. If it did not it would crash the computer.

It wouldn't crash the computer - it would just swap, slowing things down. But be that as it may, it's a bit silly to have a limit like this for no good reason other than the slider doesn't set a dynamic range

Link to comment
Share on other sites

Affinity apps unfortunately have a built-in limit how much RAM can be used by them. It was 64 GB in V1. UI allowed larger values, it had no effect.
 

This sounds insane like “640 KB RAM is enough” some decades ago. 


 

Mac mini M1 A2348 | Windows 10 - AMD Ryzen 9 5900x - 32 GB RAM - Nvidia GTX 1080

LG34WK950U-W, calibrated to DCI-P3 with LG Calibration Studio / Spider 5

iPad Air Gen 5 (2022) A2589

Special interest into procedural texture filter, edit alpha channel, RGB/16 and RGB/32 color formats, stacking, finding root causes for misbehaving files, finding creative solutions for unsolvable tasks, finding bugs in Apps.

 

Link to comment
Share on other sites

9 hours ago, rvst said:

It wouldn't crash the computer - it would just swap, slowing things down. 

A certain amount of RAM must always be used by the OS itself & much of it cannot be swapped out -- for example the code that performs swaps& manages other aspects of memory use. In UNIX-like systems including the Mac OS this is called "wired memory."

All 3 1.10.8, & all 3 V2.4.1 Mac apps; 2020 iMac 27"; 3.8GHz i7, Radeon Pro 5700, 32GB RAM; macOS 10.15.7
Affinity Photo 
1.10.8; Affinity Designer 1.108; & all 3 V2 apps for iPad; 6th Generation iPad 32 GB; Apple Pencil; iPadOS 15.7

Link to comment
Share on other sites

1 hour ago, R C-R said:

A certain amount of RAM must always be used by the OS itself & much of it cannot be swapped out -- for example the code that performs swaps& manages other aspects of memory use. In UNIX-like systems including the Mac OS this is called "wired memory."

I'm a kernel-level software engineer R-C-R. I know how OS memory management works thanks :7_sweat_smile:

Link to comment
Share on other sites

1 hour ago, rvst said:

I'm a kernel-level software engineer R-C-R. I know how OS memory management works thanks :7_sweat_smile:

Then you know it is never possible to page out all the RAM the OS uses.

All 3 1.10.8, & all 3 V2.4.1 Mac apps; 2020 iMac 27"; 3.8GHz i7, Radeon Pro 5700, 32GB RAM; macOS 10.15.7
Affinity Photo 
1.10.8; Affinity Designer 1.108; & all 3 V2 apps for iPad; 6th Generation iPad 32 GB; Apple Pencil; iPadOS 15.7

Link to comment
Share on other sites

1 minute ago, R C-R said:

Then you know it is never possible to page out all the RAM the OS uses.

Yes, but it isn't relevant to this issue, which is that a slider has been hard capped to an arbitrary number instead of setting the range "0 - InstalledRAM". Typically, I would set this slider to a certain percentage less than the available physical RAM

And it's not just the wired memory than can't be swapped out - there's also the working set for each process. If there's not enough physical RAM to contain the full working set of a process, then thrashing will occur.

 

Link to comment
Share on other sites

  • 2 months later...
  • Staff

Hey @rvst,

Apologies on the late reply,

There is an issue logged with the developers which relates to manually entering into the RAM usage limit field, if you just highlight the numerical value and replace it and then click off/tab through to a different option, it will revert back to what it was set to previously.

If you highlight the entire field (Including the 'MB') and enter in a new value (even one which exceeds the limit) this should work and save as it did in V1. This is logged with the developers.

Though, as NMF has mentioned and linked to, it is purely visual and has no real effect. I'll bump the existing issue regarding this. 

Link to comment
Share on other sites

  • 3 months later...
  • Staff

The issue "RAM Usage Limit: Overwriting the numerical values but leaving the MB doesn't keep new values" (REF: AFP-5883) has been fixed by the developers in internal build "2.1.0.1806".

This fix is in the current customer release.
If you still experience this problem once you are using that build version (or later) please reply to this thread including @Serif Info Bot to notify us

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.