POV-Ray : Newsgroups : povray.newusers : Problems with large RAM installed Server Time
26 Dec 2024 19:29:20 EST (-0500)
  Problems with large RAM installed (Message 5 to 14 of 14)  
<<< Previous 4 Messages Goto Initial 10 Messages
From: William F Pokorny
Subject: Re: Problems with large RAM installed
Date: 10 Feb 2020 12:52:24
Message: <5e419858@news.povray.org>
On 2/10/20 10:50 AM, Mirfaelltkeinerein wrote:
> "Mirfaelltkeinerein" <nomail@nomail> wrote:
>> "Mirfaelltkeinerein" <nomail@nomail> wrote:
>>> Hi all,
>>>
>>> I experienced a problem after upgrading a server from 1TB RAM to 2TB RAM (yes,
>>> really RAM) in our dual socket AMD EPYC machine with 48 cores/96 threads under
>>> Windows Server 2016. If I render a scene with 3500x1750 pixel, half of the cores
>>> are used (Windows processor group stuff) and the performance is quite nice. If I
>>> increase the resolution to 3600x1800 pixel (or more), it starts with 48
>>> threads/24 cores, but performance is bad and after several seconds, just one
>>> core/thread is doing all the work. Rendering can also not be stopped and runs
>>> till the end.
>>> I never experienced such a problem before. Do you have any ideas?
>>
>> Sorry, I posted the message into the wrong group. Could an Admin move it to the
>> Windows group?
>>
>> By the way, it doesn't happen, if I restrict the rendered area to the first 1000
>> rows for example, so it might be an scheduling issue with the total number of
>> pixels to be rendered.
> 
> It still does happen for larger resolutions like 3800x1900 pixel even with
> restricted render region.
> 
> 

Are you using POV-Ray v3.7 or the in progress v3.8 master branch? If the 
former, it might be worth trying the latter as Christoph fixed quite a 
few (all ?) fixed memory allocations which might cause stack issues and 
hence odd problems/crashes(1). I'm not a window user, but there are 
pre-compiled windows binaries for v3.8 releases. See:

https://github.com/POV-Ray/povray/releases

---
Aside: There was a recent TechSpot review of a dual socket 3990X system 
including POV-Ray where they mention AMD providing a POV-Ray patch to 
support all the cores/threads instead of 'just' 64. There is a pull 
request in:

https://github.com/POV-Ray/povray/pull/387

which I assume is this AMD fix, but I don't know for certain. Perhaps 
someone on the core team got email saying for sure? In any case if you 
are up to merging and compiling that pull request, it would be 
interesting to see if you can then use all your cores and threads - even 
if just on the smaller render.

When you say the render cannot be stopped and runs until the end, do you 
mean it continues with 1 thread AND still produces a good result? 
Surprised if this is what's happening, but maybe?

Why do you think your memory upgrade might be playing a part in what you 
now see? Were you able to render the 'problem' dimensions with the 
smaller amount of memory previously?

In whatever version of POV-Ray you are using have you tried the problem 
render with fewer threads using say +wt24 or something? Lastly, might 
guess with a machine this powerful, it might be running other things? If 
so, might these be causing what you see?

Bill P.

(1) - A part of this work was tangled in moving off boost threads to 
C++11 built in threads. The boost threads implementation could be 
tangled in your problem too I guess if you are not using a recent 3.8 
release.


Post a reply to this message

From: Le Forgeron
Subject: Re: Problems with large RAM installed
Date: 10 Feb 2020 13:00:56
Message: <5e419a58@news.povray.org>
Le 10/02/2020 à 16:25, Mirfaelltkeinerein a écrit :
> Hi all,
> 
> I experienced a problem after upgrading a server from 1TB RAM to 2TB RAM (yes,
> really RAM) in our dual socket AMD EPYC machine with 48 cores/96 threads under
> Windows Server 2016. If I render a scene with 3500x1750 pixel, half of the cores
> are used (Windows processor group stuff) and the performance is quite nice. If I
> increase the resolution to 3600x1800 pixel (or more), it starts with 48
> threads/24 cores, but performance is bad and after several seconds, just one
> core/thread is doing all the work. Rendering can also not be stopped and runs
> till the end.
> I never experienced such a problem before. Do you have any ideas?
> 

There is a default setting to replace "in-memory" picture in progress
with "on-disk" picture in progress when the memory needed for such
picture to render would be too large.

Obviously with 2TB of RAM (OMG!), you do not need such limitation. (it
is in place to save the innocents which cannot hold the picture in
progress in their small memory).

The setting is Max_Image_Buffer_Memory (default is 128 MB, using about
20 bytes per pixels, so check your size: first is 122 500 000, second is
129 600 000): you are crossing the boundary.

http://wiki.povray.org/content/Reference:General_Output_Options#Max_Image_Buffer_Memory

>
http://wiki.povray.org/content/Reference:General_Output_Options#Max_Image_Buffer_Memory

You can totally disable that security by setting the parameter to 0, but
do not cry when your process get swapped and the system crawls.


Post a reply to this message

From: Mirfaelltkeinerein
Subject: Re: Problems with large RAM installed
Date: 10 Feb 2020 14:15:01
Message: <web.5e41aade187cae06ee75e2ca0@news.povray.org>
William F Pokorny <ano### [at] anonymousorg> wrote:
> On 2/10/20 10:50 AM, Mirfaelltkeinerein wrote:
> > "Mirfaelltkeinerein" <nomail@nomail> wrote:
> >> "Mirfaelltkeinerein" <nomail@nomail> wrote:
> >>> Hi all,
> >>>
> Are you using POV-Ray v3.7 or the in progress v3.8 master branch? If the
> former, it might be worth trying the latter as Christoph fixed quite a
> few (all ?) fixed memory allocations which might cause stack issues and
> hence odd problems/crashes(1). I'm not a window user, but there are
> pre-compiled windows binaries for v3.8 releases. See:
>
> https://github.com/POV-Ray/povray/releases

I'm using 3.7 and I didn't know of 3.8. I should try it out.

> ---
> Aside: There was a recent TechSpot review of a dual socket 3990X system
> including POV-Ray where they mention AMD providing a POV-Ray patch to
> support all the cores/threads instead of 'just' 64. There is a pull
> request in:
>
> https://github.com/POV-Ray/povray/pull/387
>
> which I assume is this AMD fix, but I don't know for certain. Perhaps
> someone on the core team got email saying for sure? In any case if you
> are up to merging and compiling that pull request, it would be
> interesting to see if you can then use all your cores and threads - even
> if just on the smaller render.

Thank you very much, I'll try it out.

>
> When you say the render cannot be stopped and runs until the end, do you
> mean it continues with 1 thread AND still produces a good result?
> Surprised if this is what's happening, but maybe?

Yes, the render goes on and seemingly with the appropriate amount of render
threads (it looks like that, as a number of tiles become finished at different
times). But you can push the 'Stop' button in the GUI or press Alt-G, nothing
happens, the rendering continues. And Task manager says that just one core is
busy. The 'PPS' number supports that reading.

>
> Why do you think your memory upgrade might be playing a part in what you
> now see? Were you able to render the 'problem' dimensions with the
> smaller amount of memory previously?

Yes, I upgraded the memory, rebooted and the very first test was POVRay with the
saved settings I used before for a rendering. And I used the setting before many
many times without problems. When I reduced the image size to halve of that
amount (2000x1000), rendering (in PPS) was much faster and also all 24 cores/48
threads were used.
Then I increased image size step by step.

>
> In whatever version of POV-Ray you are using have you tried the problem
> render with fewer threads using say +wt24 or something? Lastly, might
> guess with a machine this powerful, it might be running other things? If
> so, might these be causing what you see?

After the reboot nothing else was running, except the operating system with all
its stuff.

But what I found out now is that when I run Comsol in parallel doing some heavy
calculations, POVRay also behaves as expected. Slightly slower as if it were
alone, but much faster as with the problem. I'm confused...

>
> Bill P.
>
> (1) - A part of this work was tangled in moving off boost threads to
> C++11 built in threads. The boost threads implementation could be
> tangled in your problem too I guess if you are not using a recent 3.8
> release.


Post a reply to this message

From: Bald Eagle
Subject: Re: Problems with large RAM installed
Date: 10 Feb 2020 14:15:02
Message: <web.5e41ab2f187cae064eec112d0@news.povray.org>
Sounds a lot like this:

http://news.povray.org/povray.windows/thread/%3Cweb.56edd77df9a19c455e7df57c0%40news.povray.org%3E/

But I haven't tried rendering that scene at that size again, and I'm running
Linux, not Window$.

But yeah - upgrade to the latest 3.8 and see if that helps any.

Sounds like a sweet system.  University?  Corporate machine?
What's the ballpark cost of that, and what are you rendering on that monster?


Post a reply to this message

From: Mirfaelltkeinerein
Subject: Re: Problems with large RAM installed
Date: 10 Feb 2020 14:20:04
Message: <web.5e41abd8187cae06ee75e2ca0@news.povray.org>
"jr" <cre### [at] gmailcom> wrote:
> hi,
>

>
> are you sure about the resolution being the .. culprit?  at least one user
> renders (much) larger images with no mention of ill-effects.
> <http://news.povray.org/web.5ceaeabd5e75640e3c1c78400%40news.povray.org>
>
>
> regards, jr.

No, not at all. But the problem manifested itself at higher resolutions and
vanishes at lower ones.


Post a reply to this message

From: Mirfaelltkeinerein
Subject: Re: Problems with large RAM installed
Date: 10 Feb 2020 14:25:08
Message: <web.5e41ade8187cae06ee75e2ca0@news.povray.org>
"Bald Eagle" <cre### [at] netscapenet> wrote:
> Sounds a lot like this:
>
>
http://news.povray.org/povray.windows/thread/%3Cweb.56edd77df9a19c455e7df57c0%40news.povray.org%3E/
>
> But I haven't tried rendering that scene at that size again, and I'm running
> Linux, not Window$.
>
> But yeah - upgrade to the latest 3.8 and see if that helps any.
>
> Sounds like a sweet system.  University?  Corporate machine?
> What's the ballpark cost of that, and what are you rendering on that monster?

I'm at a basic research institute and normally wave optic simulations run on
that system. And 1TB became a little... tight, therefore the upgrade. Cost is

transparent objects for presentations, too, as it's so much faster than my
desktop machine...


Post a reply to this message

From: jr
Subject: Re: Problems with large RAM installed
Date: 10 Feb 2020 18:20:00
Message: <web.5e41e41f187cae06451952ca0@news.povray.org>
"hi,

Mirfaelltkeinerein" <nomail@nomail> wrote:
> "jr" <cre### [at] gmailcom> wrote:
> > are you sure about the resolution being the .. culprit?  at least one user
> > renders (much) larger images with no mention of ill-effects.
> > <http://news.povray.org/web.5ceaeabd5e75640e3c1c78400%40news.povray.org>
>
> No, not at all. But the problem manifested itself at higher resolutions and
> vanishes at lower ones.

having read the other replies, I now wonder, what if you'd installed a GNU/Linux
distro on a virtual machine, and build and run POV-Ray on that.  could be
instructive.


regards, jr.


Post a reply to this message

From: Le Forgeron
Subject: Re: Problems with large RAM installed
Date: 11 Feb 2020 01:32:14
Message: <5e424a6e@news.povray.org>
Le 10/02/2020 à 20:15, Mirfaelltkeinerein a écrit :
> "jr" <cre### [at] gmailcom> wrote:
>> hi,
>>
> 
>>
>> are you sure about the resolution being the .. culprit?  at least one user
>> renders (much) larger images with no mention of ill-effects.
>> <http://news.povray.org/web.5ceaeabd5e75640e3c1c78400%40news.povray.org>
>>
>>
>> regards, jr.
> 
> No, not at all. But the problem manifested itself at higher resolutions and
> vanishes at lower ones.
> 

The bottleneck is a single thread doing all the I/O for the temporary
storage on disk of the rendrered pixels until the whole image is ready.

You have a hord of threads doing the computation of each block, feeding
a queue that is processed by a single thread T.
When the resolution is small enough (see my other reply), T stores the
blocks in memory (usually fast enough).

BUT when the resolution is bigger than the setting, thread T must
perform disk I/O (and from the file point of view, it is really random
access, and can be very bad with Windows file system). As T is
overburden, the rendering threads are starving to get new blocks
(otherwise, the queue from them to T would explode).

try adding +MI3210 to the option and see per yourself.


Post a reply to this message

From: Mirfaelltkeinerein
Subject: Re: Problems with large RAM installed
Date: 11 Feb 2020 09:35:01
Message: <web.5e42ba9a187cae06ee75e2ca0@news.povray.org>
"Bald Eagle" <cre### [at] netscapenet> wrote:
> Sounds a lot like this:
>
>
http://news.povray.org/povray.windows/thread/%3Cweb.56edd77df9a19c455e7df57c0%40news.povray.org%3E/
>


That was the point!
Not rendering slowed down quite a bit, but image composition. Rendering was
finished and all which had to be done was putting all together. With a more
complicated scene or larger tiles (I used 8x8 tiles before, now 32x32 or 64x64)
it's no problem at all any more.
Thank you for pointing me to the solution and thank you all for the tips and
links to v3.8 and the AMD patch.


Post a reply to this message

From: Alain Martel
Subject: Re: Problems with large RAM installed
Date: 13 Feb 2020 18:55:10
Message: <5e45e1de$1@news.povray.org>
Le 2020-02-11 à 09:31, Mirfaelltkeinerein a écrit :
> "Bald Eagle" <cre### [at] netscapenet> wrote:
>> Sounds a lot like this:
>>
>>
http://news.povray.org/povray.windows/thread/%3Cweb.56edd77df9a19c455e7df57c0%40news.povray.org%3E/
>>
> 
> 
> That was the point!
> Not rendering slowed down quite a bit, but image composition. Rendering was
> finished and all which had to be done was putting all together. With a more
> complicated scene or larger tiles (I used 8x8 tiles before, now 32x32 or 64x64)
> it's no problem at all any more.
> Thank you for pointing me to the solution and thank you all for the tips and
> links to v3.8 and the AMD patch.
> 
> 
> 
> 
You used +rb8 on that massive server ? OUCH !
It's no wonder that it tended to bog down.
Yes, using the default 32x32 should improve things.


Post a reply to this message

<<< Previous 4 Messages Goto Initial 10 Messages

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.