[Freeswitch-dev] TraceMonkey

Anthony Minessale anthony.minessale at gmail.com
Thu Jul 1 19:55:31 PDT 2010


The one that usually gets us on embedded scripts is the garbage collector.
They tend to use a global one and it can cause all kinds of blocking when
objects are tied to host objects like calls and waiting for them to
terminate holds up things.



On Thu, Jul 1, 2010 at 9:47 PM, Jan Berger <jan.berger at video24.no> wrote:

> Will find out tomorrow - I see threading in the code.
>
> It might be a case on how they do the threading. This is after all a VM
> even
> if they use native code - meaning they might do the threading in the VM. In
> which case you actually run it from a single thread, but you don't need to
> thread V8 itself - it's the scripts you run that must be threaded -
> something a VM can do internally.
>
> Take into account that a CISC like x86 have to move a load of register cash
> every time it actually thread - so simulating threading in the VM -
> changing
> context between 2 instructions would be a very performance saving thing to
> do.
>
> But, I will find out more exact tomorrow because I am only guessing now -
> and this is rather critical.
>
> V8 compiles to a 128 mb library :/ on Windows ...
>
> Jan
>
>
> -----Original Message-----
> From: freeswitch-dev-bounces at lists.freeswitch.org
> [mailto:freeswitch-dev-bounces at lists.freeswitch.org] On Behalf Of Bret
> McDanel
> Sent: 2. juli 2010 03:51
> To: freeswitch-dev at lists.freeswitch.org
> Subject: Re: [Freeswitch-dev] TraceMonkey
>
> I thought V8 was designed to be multi-threaded from inception.  Maybe I
> am confusing my projects.  I wonder if it was the embedding part of it
> that did not enable proper threading ???   Then again it could be like
> python, where when embedded all threads are virtual to the 1 process
> that is running (ie not threads as far as the kernel is concerned) which
> can confuse the kernel scheduler into sticking it in the penalty box for
> a while.  Normally you are not doing enough in the embedded language to
> notice this scheduler issue so its almost a moot point.  Other points
> may be valid though.
>
>
> On Fri, 2010-07-02 at 03:06 +0200, Jan Berger wrote:
> > What exactly is the problem with threading?
>
>
>
>
> _______________________________________________
> FreeSWITCH-dev mailing list
> FreeSWITCH-dev at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev
> http://www.freeswitch.org
>
>
> _______________________________________________
> FreeSWITCH-dev mailing list
> FreeSWITCH-dev at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev
> http://www.freeswitch.org
>



-- 
Anthony Minessale II

FreeSWITCH http://www.freeswitch.org/
ClueCon http://www.cluecon.com/
Twitter: http://twitter.com/FreeSWITCH_wire

AIM: anthm
MSN:anthony_minessale at hotmail.com <MSN%3Aanthony_minessale at hotmail.com>
GTALK/JABBER/PAYPAL:anthony.minessale at gmail.com<PAYPAL%3Aanthony.minessale at gmail.com>
IRC: irc.freenode.net #freeswitch

FreeSWITCH Developer Conference
sip:888 at conference.freeswitch.org <sip%3A888 at conference.freeswitch.org>
googletalk:conf+888 at conference.freeswitch.org<googletalk%3Aconf%2B888 at conference.freeswitch.org>
pstn:+19193869900
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-dev/attachments/20100701/625ef812/attachment.html 


More information about the FreeSWITCH-dev mailing list