Sie sind auf Seite 1von 7

ArsTechnicahasarrivedinEurope.Checkitout!

TECHNOLOGY LAB / INFORMATION TECHNOLOGY


LATEST FROM ARS TECHNICA/UK

How to build your own render farm

Yourmainworkstationhasalotofpower,sofreeituptodobetterthings.
byDaveGirardMay12,20143:00amCEST

62

Installing our 3D software in Linux


Forthistutorial,ImgoingtowalkthroughthesetupforMayaandtheVRayrendererfromthe
desktop(notremoteshell)notbecauseIthinkeveryonerunsit,butbecauseitshowsyouthebasic
approachandproblemsthatcanarisewithsoftwareinstallationinLinux.WiththeMayaLinux
installerextractedtoafolderonthedesktop,openaterminalwindowandsutotherootuser.From
theMayainstallfolder,draganddropthesetupbinaryinstallationprogramintotheterminalwindow
andhitenter.Afteryouenteryourserial,starttheinstall...anditwillfail:

100 psychology experiments


repeated, less than half
successful
UK police triples use of adhijacking tech on alleged
piracy websites
Germany hands over citizens
metadata in return for NSAs
top spy software
PHONEFAIL

Fire Phone flop blamed forRegister


layoffsLogin
and reorganisation at Amazon, WSJ
says

Main Menu

My Stories: 0

Forums

Subscribe

Jobs

Ars Consortium

AMDs R9 Nano crams a full


Fury X into a tiny 6-inch form
factor

LATEST FEATURE STORY

FEATURE STORY (2 PAGES)

NASA versus Katrina:


August 29, 2005
Or,how38NASAemployeeskeptthespace
programaliveamidthedevastatinghurricane.
HereisyourfirstspeedbumpinthespeedbumpyworldofLinux,and,intrueLinuxfashion,itwillnot
beimmediatelyclearfromanyofthemessageswhyitfailed.Theresnothinginherentlybadabout
LinuxhereitsjustthatthedevelopersassumeyourefamiliarwithLinux,sotheydontdoanyofthe
extraworkofmakinginstallationsfoolproof.Sohereisthesolution:youneedtohavethefolderas
theworkingdirectorytohaveitsucceed.Typecdwiththespaceanddragthefolderintothe
windowsoyougetthis:

WATCH ARS VIDEO

Enlarge/Ofcourse,youcantypethispathifdragginganddroppingistooninetiesforyou.

Hitentertosettheworkingdirectorytothatpath.
Nexttype./setuptoexecutethesetupbinaryfromthelocalworkingdirectory(thatsthe./).The
installnowworks.Youvenowgotonecommoninstallissueunderyourbeltsokeepthisfixinmind
forthefuture.Aftertheinstallisdone,youwillbeabletolaunchMayafromtheGNOME
Applications/Graphics
menu.
Movingon,letsinstallVRay3.0(Imusingthebeta)byrunningtheinstallerasrootitcanbedone
withoutsettingtheworkingdirectoryfirst.MakesurethatRegisterVRayRenderSlaveAsaService
ischeckedon.VRayrenderersneedtobeconfiguredtolookforthelicenseserver,butImgoingto
skipthatportionhere.Aftertheinstallisdone,letsgobacktoourmastermachineandrunMayato
tryoutanetworkenabledrender.IntheRenderSettingspanelforVRay,gotoSettings/Distributed

Samsung Unpacked 2015


ArslooksattheSamsungGalaxy6Edge+and
theNote5.

STAY IN THE KNOW WITH

LATEST NEWS
Associated Press sues FBI over fake

RenderingandmakesurethatUsedistributedrenderingisonandthenclicktheSettingsbuttonto
addyourmusclemachinetothepool.SinceyousetupyourrendererwithastaticlocalIP,the
addressyouputinhereshouldneverchange,andleavetheportatthedefaultbutnotethatforyour
firewallsettings:

news story

The new tech making game


preservation more authentic
and future-proof
WELCOMEBACK,HOCKER

Key Splinter Cell, Far Cry 2 designer


returns to Ubisoft after five years
FEASTORFAMINE,DATAEDITION

Nielsen is scanning 1,000 Netflix


shows to break the streaming black
box
BitTorrent patched against
flaw that allowed crippling
DoS attacks
Ashley Madison abusing
DMCA to put genie back in
the bottle, EFF says

IfyouareusingAutodeskMaxasyourhost,thisprocesswillbealmostthesame,sincebothVRayfor
MaxandMayahavesimilarrendersettingspanels,andwecanusethesameVRay3rendererservice
forbothprograms.

ThetransfermissingassetsandusecachedassetsareVRay3.0featuresthatmakemixed
platformrenderingeasy,sinceitalleviatesanyneedtohandlenetworkpathsanditavoidsSAMBA
altogether.ThatalsomeansyoucanrenderfromaWindowsmachinewithMaxtoMacandLinuxV
Ray3.0rendereranditjustworks.Verynice.
Nowtotestoutourdistributedrender.Ifinditeasiertoseewhatsgoingonwithourdistributedtiles
bycreatingaslowtorenderscenelikesomethingwithSSSskinorglossyshaderwithatonof
subdivisions.HitRenderinMayaorMaxandseewhatyouget.Ifallgoesaccordingtoplan,you
shouldntgetanynetworkrendering.Yes,Isaidshouldnt:

Enlarge

Ipurposefullysetusuptofailagain,sowecansolveanothercommonproblemofnetworkrendering.
IfyoudidntrebootyourmachineafterinstallingtheVRayrenderingservice,itprobablydidntload
theVRayrenderingservice,sotherewasnothingforthemastertoconnectto.Fromourmaster
machine,letslogintotherendereroversshandcheckifVRayisrunninganythingnoneedtodo
anyofthisasroot.Typethefollowingandhitenter:
psax|grepvray
psisourprocessmonitorapplication,andwerepipingitsoutputtogrep,atextfilterthatlooksfor
lineswithvrayinitandthenprintstheoutput.Ifnothingisrunning,thenitwilljustprinttheprocess
ofgrepcheckingfor"vray":
30048pts/0S+0:00grepvray
SoletsrunourVRaymusclewithoutrebooting.ForMaya2014,theslaveserviceislocatedat
/usr/ChaosGroup/VRay/Maya2014x64/bin/vrayslave,sotypethatandhitenter.Youshouldsee
somethinglikethis:

Enlarge

HitRenderagaininMayaorMaxandyoushouldseesomemagicstarttohappeninthe
renderer'ssshsession:

Enlarge

Andourrenderstartstoshowtheevidenceoftwomachinesworkingatonce:

Enlarge/Thisiswhereashortnetworknamepaysoff.

Withmy10coreXeonaddedtothemix,wegetatotalof48bucketsonebucketperCPUthread:

Enlarge/Yep.Feelsprettygood.

Sowhatareourrendertimeslikewiththosethreemachineshackingawayatourframe?Well,here's
anexampleofthegainsyoucanget,evenjustfromthatthreemachinefarmwithMacPro8core
3.0GHzE5v2,10core3.0GHzXeonE5v2andi73930Kgamingrigoverclockedto4.4GHz:

Thislowerrenderscorecompletelysavedmyasstheotherdaywitha"needittoday"archviz
jobthathadmeworkingfor13hoursstraight.

Sinceguessingourworkloadbalancefromthosetextoverlaysisabitofastretch,VRayhasa
renderpass/elementcalledDRBucketthatisdesignedtodiagnoserenderbuckets(thosetiles)
withdistributedrendering.Withthataddedtoyourrenderelements,youcangetaveryclearpicture
ofhowmuchofyourrendereachmachineishandling:

Enlarge/ItalsohastheaddedbonusthatitlookslikeaZeldamap.TheislandinthemiddleistheMacProhost
workingwhiletheothersreceivethetexturedataandstarttheirwork.

Ifthecoloredbucketcountisnotproportionaltothemaster/slavescomputingpower,thenyouhave
aproblemtofix,likeanetworkbottlenecksomewhere.IfyouwereusingaWiFiconnectionforthe
muscle,youdprobablyseeadisproportionateamountofthemastermachine'stiles,forexample.
Mixing platforms with rendering?
Atthispoint,youreprobablywonderingifIvecourteddisasterbymixingaMacOSXhost,aLinux
renderer,andaWindowsrenderertorendermyimage.Restassured,everytilelooksthesame
whenIrender,regardlessofplatform:

Thereisnoperceptibledifferencebetweenbucketsrenderedondifferentplatforms.

ButsinceVRay3.0splatformagnosticbackendisverymuchanidealscenario,welllookat
solutionsformixednetworkrenderingwherewedonthavetheluxuryofthesoftwarehandlingthe
assettransferportion.Beforewemoveon,Iwanttoaddressonemoreproblemthatslingering.We
currentlyhaveourLinuxrendererrunninginanopensshsession,but,becausethatprocesswilldie
assoonastheterminalwindowisclosed,wehaveaproblem.Soweregoingtotacklethisthe
intelligentnetworkadminwaybyusingourscreenprogramthatwe'veinstalled.Screenisdesigned
tofixthisexactproblembycreatingavirtualshellthatyourunanotherprocesswithin.So,killyour
vrayslaveprocesswithcontrolcandtypescreenandhitenter.Thenlaunchitagain
(/usr/ChaosGroup/VRay/Maya2014x64/bin/vrayslave).Now,andthisisthegoodpart,hitcontrola
toaddressscreenandhitthedkey.Youshouldseethismessage:

Screenhasdetachedthevirtualsessionsothatitnolongerdieswhenthesshsessionorwindowis
closed.Closethewindowandrunyourdistributednetworkanditwillwork.Toreconnecttothe
rendererprocessinscreen,justtypescreenranditwillcomebackupasbeforebutwithnew
messages,asitneverstoppedworkinginthebackground.Thiswouldseemlikealotofworktosolve
aproblemthatcouldhavebeensolvedjustbyrebootingthemusclemachinesotherenderservice
wouldstart,butrenderslaveservicescancrash,soyouneedtousethisscreenmethodtorelaunch
themremotely.Screenalsocomesinhandytostartaremotecommandlinerenderstartarender
jobandsshsessiononyourphonewhilesunningitupatthepark,forexample.WhiletheUnix
commandlinestuffcanbeintimidatingatfirst,youquicklylearntolovethepowerandflexibility.

PAGE: 1 2 3 4 5 6 NEXT
READER COMMENTS 62

OLDER STORY

NEWER STORY

YOU MAY ALSO LIKE

SITE LINKS

MORE READING

CONDE NAST SITES

AboutUs

RSSFeeds

Reddit

Advertisewithus

Newsletters

Wired

ContactUs
Reprints

VanityFair
VisitArsTechnicaUK

Style
Details

SUBSCRIPTIONS
SubscribetoArs

Visitoursistersites
Subscribetoamagazine

2015CondNast.Allrightsreserved
UseofthisSiteconstitutesacceptanceofourUserAgreement(effective1/2/14)andPrivacyPolicy(effective1/2/14),andArsTechnicaAddendum(effective5/17/2012)
YourCaliforniaPrivacyRights
Thematerialonthissitemaynotbereproduced,distributed,transmitted,cachedorotherwiseused,exceptwiththepriorwrittenpermissionofCondNast.
AdChoices

VIEW MOBILE SITE

Das könnte Ihnen auch gefallen