question

Andrew Wilkins avatar image
Andrew Wilkins asked

Flush All Caches - Missing in HtoA?

Hello,

Coming from MtoA to HtoA—I've noticed that there isn't any "Flush All Caches" to force unload resources such as RAM usage.

I had memory build-up and no way to release it without closing & re-opening Houdini.

Using Houdini "Cache Manager", closing and opening "Render View", Clicking "Render" ie. Regenerating Shadow Maps and render — didn't unload the RAM usage.


Any reason why this feature doesn't seem to be in HtoA?


All the best,
Andrew

flush-caches.jpg

flush-caches-missing.jpg



HtoA: 5.6.0.0
Arnold: 6.2.0.0
Houdini: 18.5.462
OS: Windows 10

htoa
2 comments
10 |600 characters needed characters left characters exceeded

Up to 5 attachments (including images) can be used with a maximum of 2.0 MiB each and 9.8 MiB total.

Hey,


I have asked this question before as well. It’s really important to get into HtoA / Solaris. Currently when exporting a texture from a DCC on Windows and using it in Houdini it locks the path since the file is in use. This means as you are lookdeving, you constantly have to write new versions to disk and version up the files in the texture reads. If we had the clear caches, you could clear the cache and write over the file and then restart the render. It’s a workflow issue

0 Likes 0 ·
In non-Solaris Houdini, the tx file should not be locked, and auto tx should take care of updating the tx when the original jpg/png/exr is updated.


0 Likes 0 ·
Stephen Blair avatar image
Stephen Blair answered

Flush Cache clears the texture cache, nothing else. So by default, that's 4096 MB of RAM.

We have an open enhancement ticket for adding the same Flush Cache menus as in MtoA.

You can flush individual textures, for example:
1622803562148.png


1622803562148.png (87.5 KiB)
1 comment
10 |600 characters needed characters left characters exceeded

Up to 5 attachments (including images) can be used with a maximum of 2.0 MiB each and 9.8 MiB total.

Ok thanks for the info!

So technically "Clicking "Render" in the render view. ie. Regenerating Shadow Maps and render" should do the same as an "Update Full Scene" in Maya?

Any reason / ideas why the RAM usage wasn't unloading?

Quite a simple scene with displacement / subdivision which I was adjusting.
RAM usage built up over 30GB, but the actual RAM usage after a Houdini restart was only 8GB.


Andrew

0 Likes 0 ·
Agustin Gonzalez avatar image
Agustin Gonzalez answered

for flushing the caches globally you can try


import arnold

arnold.AiUniverseCacheFlush(arnold.AI_CACHE_ALL)

1 comment
10 |600 characters needed characters left characters exceeded

Up to 5 attachments (including images) can be used with a maximum of 2.0 MiB each and 9.8 MiB total.

it is not working

0 Likes 0 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 5 attachments (including images) can be used with a maximum of 2.0 MiB each and 9.8 MiB total.

Welcome to the Arnold Answers community.

This is the place for Arnold renderer users everywhere to ask and answer rendering questions, and share knowledge about using Arnold, Arnold plugins, workflows and developing tools with Arnold.

If you are a new user to Arnold Answers, please first check out our FAQ and User Guide for more information.

When posting questions, please be sure to select the appropriate Space for your Arnold plugin and include the plugin version you are using.

Please include images, scene and log files whenever possible as this helps the community answer your questions.

Instructions for generating full verbosity log files are available for MtoA, MaxtoA, C4DtoA, HtoA, KtoA, and Kick.

If you are looking for Arnold Documentation and Support please visit the Arnold Support site.

To try Arnold please visit the Arnold Trial page.

Bottom No panel present for this section.