POV-Ray : Newsgroups : povray.off-topic : My toy Server Time
6 Sep 2024 17:20:18 EDT (-0400)
  My toy (Message 61 to 70 of 85)  
<<< Previous 10 Messages Goto Latest 10 Messages Next 10 Messages >>>
From: Chambers
Subject: Re: My toy
Date: 8 Mar 2009 17:14:13
Message: <49b43525@news.povray.org>
On 3/3/2009 12:03 PM, Nicolas Alvarez wrote:
> Seriously, it's the only sane way to do something compute-bound AND have a
> GUI.

Not quite; you COULD implement scheduling / task switching in a single 
thread.  It would just be too much hassle when real threading is available.

-- 
...Chambers
www.pacificwebguy.com


Post a reply to this message

From: Chambers
Subject: Re: My toy
Date: 8 Mar 2009 17:23:54
Message: <49b4376a$1@news.povray.org>
On 3/5/2009 8:21 AM, Invisible wrote:
> Still, realistically... if I just want something with silly amounts of
> CPU power, there are cheaper ways to do that than a server. I just like
> the way servers look cool, that's all. Way cooler than the "extreme
> modded" gamer PCs! :-P

Not to mention the Server uses space more economically than a room full 
of PCs would.  Not everyone has a spare floor in their building for the 
500+ PCs needed for their server farm; a few racks and an air 
conditioner, however, will fit in a much smaller space.

-- 
...Chambers
www.pacificwebguy.com


Post a reply to this message

From: Nicolas Alvarez
Subject: Re: My toy
Date: 8 Mar 2009 17:35:47
Message: <49b43a32@news.povray.org>
Chambers wrote:
> Not quite; you COULD implement scheduling / task switching in a single
> thread.  It would just be too much hassle when real threading is
> available.

Most GUI toolkits either provide a function that blocks waiting for an
event, or take over control and call your callbacks (ie. event loop inside
the toolkit). How can you call anything else meanwhile?


Post a reply to this message

From: Orchid XP v8
Subject: Re: My toy
Date: 8 Mar 2009 17:38:08
Message: <49b43ac0$1@news.povray.org>
Chambers wrote:

> Not to mention the Server uses space more economically than a room full 
> of PCs would.  Not everyone has a spare floor in their building for the 
> 500+ PCs needed for their server farm; a few racks and an air 
> conditioner, however, will fit in a much smaller space.

That's what amused me about the "buy 8 blade servers and get the blade 



Wow, big deal. :-P

But then, today I thought... why would you bother with blades if you 
weren't going to have *lots* of them in the first place? If you only 
need 3 servers, why not just get ordinary rack-mount ones for a fraction 
of the price?

-- 
http://blog.orphi.me.uk/
http://www.zazzle.com/MathematicalOrchid*


Post a reply to this message

From: Darren New
Subject: Re: My toy
Date: 8 Mar 2009 17:43:10
Message: <49b43bee$1@news.povray.org>
Nicolas Alvarez wrote:
> How can you call anything else meanwhile?

Timer pulses. Tell the event loop to call your process ten times a second.

-- 
   Darren New, San Diego CA, USA (PST)
   My fortune cookie said, "You will soon be
   unable to read this, even at arm's length."


Post a reply to this message

From: Darren New
Subject: Re: My toy
Date: 8 Mar 2009 19:21:59
Message: <49b45317@news.povray.org>
Chambers wrote:
> Not quite; you COULD implement scheduling / task switching in a single 
> thread.  It would just be too much hassle when real threading is available.

Actually, if you get a good library for it, it can be beneficial in several 
ways.

For example, Erlang does this (one thread per core) and supports hundreds of 
thousands of concurrent threads (which would easily blow the stack and the 
scheduler if you used OS threads).

Tcl uses this approach (unless you opt for threads, of course) with the 
advantage that events that occur are serialized, so you can write code to 
handle events coming in from sockets that update shared globals without 
worrying about locks. Of course, if you have multiple cores, you're kind of 
screwed performance-wise with this approach, which is why Tcl supports real 
threads as well. Works great on a single CPU per process, tho.

The drawback is that without continuations as well (Tcl doesn't do lambdas 
any better than C++ does), it's hard to coordinate stuff sometimes, because 
you're always coming in at the top level. You have to turn all your loops 
inside out, basically.

I was thinking of looking at the Python asyncore module (which is what does 
this sort of thing for Python) and seeing if I could combine it with yield 
and send() to make lightweight isolated threads. Would be very cool.

-- 
   Darren New, San Diego CA, USA (PST)
   My fortune cookie said, "You will soon be
   unable to read this, even at arm's length."


Post a reply to this message

From: Chambers
Subject: Re: My toy
Date: 8 Mar 2009 20:22:32
Message: <49b46148$1@news.povray.org>
On 3/8/2009 2:35 PM, Nicolas Alvarez wrote:
> Most GUI toolkits either provide a function that blocks waiting for an
> event, or take over control and call your callbacks (ie. event loop inside
> the toolkit). How can you call anything else meanwhile?

Use a GUI toolkit designed with task scheduling on a single CPU w/o 
hardware interrupts.

What you're asking is like asking, "How can you implement raytracing 
with a graphics engine designed for scanline rendering?"  The answer 
being, of course, "Use a different engine" :)

-- 
...Chambers
www.pacificwebguy.com


Post a reply to this message

From: Chambers
Subject: Re: My toy
Date: 8 Mar 2009 20:24:14
Message: <49b461ae@news.povray.org>
On 3/8/2009 2:38 PM, Orchid XP v8 wrote:
> That's what amused me about the "buy 8 blade servers and get the blade


>
> Wow, big deal. :-P

Hey, that's 11% off - I see stores running specials like that all the 
time :)

-- 
...Chambers
www.pacificwebguy.com


Post a reply to this message

From: Chambers
Subject: Re: My toy
Date: 9 Mar 2009 05:33:40
Message: <49b4e274$1@news.povray.org>
D***, your job sounds fun :)

-- 
...Chambers
www.pacificwebguy.com


Post a reply to this message

From: Invisible
Subject: Re: My toy
Date: 9 Mar 2009 05:46:58
Message: <49b4e592@news.povray.org>
Invisible wrote:

> Mine is configured like this:
> 
> - Dual redundant PSUs.
> - 2x quad-core Xeons at 2.0 GHz. (Yes, you read correctly. That's 8 
> cores in total.)
> - 4x 1 GB RAM (i.e., 4 GB RAM on two channels.)
> - 6x SAS 72 GB HDs spinning at 10,000 RPM. (Configured as two RAID-1 
> arrays with one hot spare and one cold spare.)

Muhuhuhuhuh!! Check out the attachment. LOOK AT ALL THOSE CORES!!! 8^D


Post a reply to this message


Attachments:
Download 'cores.png' (19 KB)

Preview of image 'cores.png'
cores.png


 

<<< Previous 10 Messages Goto Latest 10 Messages Next 10 Messages >>>

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