Re: Support for GC.AddMemoryPressure()

glopes <[email protected]> Tue, 5 Jun 2012 02:55:18 -0700 (PDT)
Newsgroups gmane.comp.gnome.mono.garbage-collection
Message-ID <CAGV1SGKvnJTAkx+y+ufW=ghAx3EtsoQnSEWOduvq2e4CHv+_ZA@mail.gmail.com>
--===============1333967670==
Content-Type: multipart/alternative; 
	boundary="----=_Part_6471_29967463.1338890118805"

------=_Part_6471_29967463.1338890118805
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

That's very reassuring to hear :-)
MemoryPressure is definitely a very convenient feature for certain wrappers
(e.g. image processing), especially when built for functionally oriented
languages like F# or even C# LINQ, and it's great to know we'll have
support to make it fully functional in Mono.

Would it be beneficial to have memory behavior tests run in Mono to
benchmark this? Playing around with MemoryPressure personally has made me
realize just how aggressive Microsoft's GC is. I've got the same
application running on Windows .NET with a stable footprint of 80/90 MB and
on Linux Mono it grows to more than 1 GB in less than a second. Basically
image processing at high-resolution and fast frame-rates.

Is there any place where one could follow/test the roadmap or current
prototypes/source code for this?

Thanks again!
G

On 5 June 2012 03:49, Rodrigo Kumpera [via Mono] <
[email protected]> wrote:

> We want to support MemoryPressure, or some form of it. I have a working
> prototype here
> for it but the point is how do we take pressure into account.
>
> This is a very obscure API and there isn't any known application using it
> so I'm modeling
> it against our needs at Xamarin.
>
>
>
> On Mon, Jun 4, 2012 at 10:53 PM, glopes <[hidden email]<http://user/SendEmail.jtp?type=node&node=4649714&i=0>
> > wrote:
>
>> Hi everyone,
>>
>> Its been very impressive to see how far Mono has improved its garbage
>> collection strategies over time, congrats! However, it seems there's one
>> important feature which remains unsupported to this day:
>> AddMemoryPressure.
>>
>> Since it seems like a very useful feature which doesn't seem particularly
>> hard to implement (note: I may be wrong on this, it's just my naive
>> impression), I was curious whether there was any particular reason why it
>> shouldn't be supported. I've googled around and couldn't find any
>> definitive
>> arguments on this.
>>
>> Does anyone know the reason or any roadmap/plans for this?
>>
>> Thanks and keep up the excellent work!
>> G
>>
>> --
>> View this message in context:
>> http://mono.1490590.n4.nabble.com/Support-for-GC-AddMemoryPressure-tp4649713.html
>> Sent from the Mono - Garbage Collection mailing list archive at
>> Nabble.com.
>> _______________________________________________
>> Mono-gc-list maillist  -  [hidden email]<http://user/SendEmail.jtp?type=node&node=4649714&i=1>
>> http://lists.ximian.com/mailman/listinfo/mono-gc-list
>>
>
>
> _______________________________________________
> Mono-gc-list maillist  -  [hidden email]<http://user/SendEmail.jtp?type=node&node=4649714&i=2>
> http://lists.ximian.com/mailman/listinfo/mono-gc-list
>
>
> ------------------------------
>  If you reply to this email, your message will be added to the discussion
> below:
>
> http://mono.1490590.n4.nabble.com/Support-for-GC-AddMemoryPressure-tp4649713p4649714.html
>  To unsubscribe from Support for GC.AddMemoryPressure(), click here<http://mono.1490590.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=4649713&code=Z29uY2Fsb2Nsb3Blc0BnbWFpbC5jb218NDY0OTcxM3w1Nzg4Mzk1OTY=>
> .
> NAML<http://mono.1490590.n4.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>


--
View this message in context: http://mono.1490590.n4.nabble.com/Support-for-GC-AddMemoryPressure-tp4649713p4649720.html
Sent from the Mono - Garbage Collection mailing list archive at Nabble.com.
------=_Part_6471_29967463.1338890118805
Content-Type: text/html; charset=UTF8
Content-Transfer-Encoding: quoted-printable

That&#39;s very reassuring to hear :-)<div>MemoryPressure is definitely a v=
ery convenient feature for certain wrappers (e.g. image processing), especi=
ally when built for functionally oriented languages like F# or even C# LINQ=
, and it&#39;s great to know we&#39;ll have support to make it fully functi=
onal in Mono.</div>
<div><br></div><div>Would it be beneficial to have memory behavior tests ru=
n in Mono to benchmark this? Playing around with MemoryPressure personally =
has made me realize just how aggressive Microsoft&#39;s GC is. I&#39;ve got=
 the same application running on Windows .NET with a stable footprint of 80=
/90 MB and on Linux Mono it grows to more than 1 GB in less than a second. =
Basically image processing at high-resolution and fast frame-rates.</div>
<div><br></div><div>Is there any place where one could follow/test the road=
map or current prototypes/source code for this?</div><div><br></div><div>Th=
anks again!</div><div>G<br><div><div><br><div class=3D"gmail_quote">On 5 Ju=
ne 2012 03:49, Rodrigo Kumpera [via Mono] <span dir=3D"ltr">&lt;<a href=3D"=
/user/SendEmail.jtp?type=3Dnode&node=3D4649720&i=3D0" target=3D"_top" rel=
=3D"nofollow" link=3D"external">[hidden email]</a>&gt;</span> wrote:<br>
<blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p=
x #ccc solid;padding-left:1ex"><div class=3D"im">

=09We want to support MemoryPressure, or some form of it. I have a working =
prototype here<div>for it but the point is how do we take pressure into acc=
ount.</div><div><br></div><div>This is a very obscure API and there isn&#39=
;t any known application using it so I&#39;m modeling</div>

<div>it against our needs at Xamarin.</div></div><div>=C2=A0<br><div><div><=
div><br><br><div class=3D"gmail_quote"><div><div class=3D"h5">On Mon, Jun 4=
, 2012 at 10:53 PM, glopes <span dir=3D"ltr">&lt;<a href=3D"http://user/Sen=
dEmail.jtp?type=3Dnode&amp;node=3D4649714&amp;i=3D0" rel=3D"nofollow" link=
=3D"external" target=3D"_blank">[hidden email]</a>&gt;</span> wrote:<br>


</div></div><blockquote style=3D"border-left:2px solid #cccccc;padding:0 1e=
m" class=3D"gmail_quote"><div><div class=3D"h5">Hi everyone,<br>
<br>
Its been very impressive to see how far Mono has improved its garbage<br>
collection strategies over time, congrats! However, it seems there&#39;s on=
e<br>
important feature which remains unsupported to this day: AddMemoryPressure.=
<br>
<br>
Since it seems like a very useful feature which doesn&#39;t seem particular=
ly<br>
hard to implement (note: I may be wrong on this, it&#39;s just my naive<br>
impression), I was curious whether there was any particular reason why it<b=
r>
shouldn&#39;t be supported. I&#39;ve googled around and couldn&#39;t find a=
ny definitive<br>
arguments on this.<br>
<br>
Does anyone know the reason or any roadmap/plans for this?<br>
<br>
Thanks and keep up the excellent work!<br>
G<br>
<br>
--<br>
View this message in context: <a href=3D"http://mono.1490590.n4.nabble.com/=
Support-for-GC-AddMemoryPressure-tp4649713.html" rel=3D"nofollow" link=3D"e=
xternal" target=3D"_blank">http://mono.1490590.n4.nabble.com/Support-for-GC=
-AddMemoryPressure-tp4649713.html</a><br>



Sent from the Mono - Garbage Collection mailing list archive at Nabble.com.=
<br>
_______________________________________________<br></div></div>
Mono-gc-list maillist =C2=A0- =C2=A0<a href=3D"http://user/SendEmail.jtp?ty=
pe=3Dnode&amp;node=3D4649714&amp;i=3D1" rel=3D"nofollow" link=3D"external" =
target=3D"_blank">[hidden email]</a><br>
<a href=3D"http://lists.ximian.com/mailman/listinfo/mono-gc-list" rel=3D"no=
follow" link=3D"external" target=3D"_blank">http://lists.ximian.com/mailman=
/listinfo/mono-gc-list</a><br>
</blockquote></div><br>
</div></div></div></div>
<br>_______________________________________________
<br>Mono-gc-list maillist =C2=A0- =C2=A0<a href=3D"http://user/SendEmail.jt=
p?type=3Dnode&amp;node=3D4649714&amp;i=3D2" rel=3D"nofollow" link=3D"extern=
al" target=3D"_blank">[hidden email]</a>
<br><a href=3D"http://lists.ximian.com/mailman/listinfo/mono-gc-list" rel=
=3D"nofollow" link=3D"external" target=3D"_blank">http://lists.ximian.com/m=
ailman/listinfo/mono-gc-list</a><br>
=09
=09<br>
=09<br>
=09<hr noshade size=3D"1" color=3D"#cccccc">
=09<div style=3D"color:#444;font:12px tahoma,geneva,helvetica,arial,sans-se=
rif">
=09=09<div style=3D"font-weight:bold">If you reply to this email, your mess=
age will be added to the discussion below:</div>
=09=09<a href=3D"http://mono.1490590.n4.nabble.com/Support-for-GC-AddMemory=
Pressure-tp4649713p4649714.html" target=3D"_blank" rel=3D"nofollow" link=3D=
"external">http://mono.1490590.n4.nabble.com/Support-for-GC-AddMemoryPressu=
re-tp4649713p4649714.html</a>
=09</div>
=09<div style=3D"color:#666;font:11px tahoma,geneva,helvetica,arial,sans-se=
rif;margin-top:.4em;line-height:1.5em">
=09=09
=09=09To unsubscribe from Support for GC.AddMemoryPressure(), <a href=3D"" =
target=3D"_blank" rel=3D"nofollow" link=3D"external">click here</a>.<br>

=09=09<a href=3D"http://mono.1490590.n4.nabble.com/template/NamlServlet.jtp=
?macro=3Dmacro_viewer&amp;id=3Dinstant_html%21nabble%3Aemail.naml&amp;base=
=3Dnabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNam=
espace-nabble.view.web.template.NodeNamespace&amp;breadcrumbs=3Dnotify_subs=
cribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_ins=
tant_email%21nabble%3Aemail.naml" rel=3D"nofollow" style=3D"font:9px serif"=
 target=3D"_blank" link=3D"external">NAML</a>
=09</div></blockquote></div><br></div></div></div>

=09
<br/><hr align=3D"left" width=3D"300" />
View this message in context: <a href=3D"http://mono.1490590.n4.nabble.com/=
Support-for-GC-AddMemoryPressure-tp4649713p4649720.html">Re: Support for GC=
.AddMemoryPressure()</a><br/>
Sent from the <a href=3D"http://mono.1490590.n4.nabble.com/Mono-Garbage-Col=
lection-f1553555.html">Mono - Garbage Collection mailing list archive</a> a=
t Nabble.com.<br/>
------=_Part_6471_29967463.1338890118805--

--===============1333967670==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
Mono-gc-list maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-gc-list

--===============1333967670==--