<div dir="ltr">The problem of data transfer costs is not new in Cloud environments. At work we usually just opt for paying for it since dev time is scarser. For private projects though, I opt for aggressive (remote) caching.<div>So you can setup a global cache in Google Cloud Storage and more local caches wherever your executors are (reduces egress as much as possible).</div><div>This setup works great with Bazel and Pants among others. Note that these systems are pretty hermetic in contrast to Meson.</div><div>IIRC Eric by now works at Google. They internally use Blaze which AFAIK does aggressive caching, too.</div><div>So maybe using any of these systems would be a way of not having to sacrifice any of the current functionality.</div><div>Downside is that you have lower a bit of dev productivity since you cannot eyeball your build definitions anymore.</div><div><br></div><div>ym2c</div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, 28 Feb 2020 at 20:34, Eric Anholt <<a href="mailto:eric@anholt.net">eric@anholt.net</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Fri, Feb 28, 2020 at 12:48 AM Dave Airlie <<a href="mailto:airlied@gmail.com" target="_blank">airlied@gmail.com</a>> wrote:<br>
><br>
> On Fri, 28 Feb 2020 at 18:18, Daniel Stone <<a href="mailto:daniel@fooishbar.org" target="_blank">daniel@fooishbar.org</a>> wrote:<br>
> ><br>
> > On Fri, 28 Feb 2020 at 03:38, Dave Airlie <<a href="mailto:airlied@gmail.com" target="_blank">airlied@gmail.com</a>> wrote:<br>
> > > b) we probably need to take a large step back here.<br>
> > ><br>
> > > Look at this from a sponsor POV, why would I give X.org/fd.o<br>
> > > sponsorship money that they are just giving straight to google to pay<br>
> > > for hosting credits? Google are profiting in some minor way from these<br>
> > > hosting credits being bought by us, and I assume we aren't getting any<br>
> > > sort of discounts here. Having google sponsor the credits costs google<br>
> > > substantially less than having any other company give us money to do<br>
> > > it.<br>
> ><br>
> > The last I looked, Google GCP / Amazon AWS / Azure were all pretty<br>
> > comparable in terms of what you get and what you pay for them.<br>
> > Obviously providers like Packet and Digital Ocean who offer bare-metal<br>
> > services are cheaper, but then you need to find someone who is going<br>
> > to properly administer the various machines, install decent<br>
> > monitoring, make sure that more storage is provisioned when we need<br>
> > more storage (which is basically all the time), make sure that the<br>
> > hardware is maintained in decent shape (pretty sure one of the fd.o<br>
> > machines has had a drive in imminent-failure state for the last few<br>
> > months), etc.<br>
> ><br>
> > Given the size of our service, that's a much better plan (IMO) than<br>
> > relying on someone who a) isn't an admin by trade, b) has a million<br>
> > other things to do, and c) hasn't wanted to do it for the past several<br>
> > years. But as long as that's the resources we have, then we're paying<br>
> > the cloud tradeoff, where we pay more money in exchange for fewer<br>
> > problems.<br>
><br>
> Admin for gitlab and CI is a full time role anyways. The system is<br>
> definitely not self sustaining without time being put in by you and<br>
> anholt still. If we have $75k to burn on credits, and it was diverted<br>
> to just pay an admin to admin the real hw + gitlab/CI would that not<br>
> be a better use of the money? I didn't know if we can afford $75k for<br>
> an admin, but suddenly we can afford it for gitlab credits?<br>
<br>
As I think about the time that I've spent at google in less than a<br>
year on trying to keep the lights on for CI and optimize our<br>
infrastructure in the current cloud environment, that's more than the<br>
entire yearly budget you're talking about here. Saying "let's just<br>
pay for people to do more work instead of paying for full-service<br>
cloud" is not a cost optimization.<br>
<br>
<br>
> > Yes, we could federate everything back out so everyone runs their own<br>
> > builds and executes those. Tinderbox did something really similar to<br>
> > that IIRC; not sure if Buildbot does as well. Probably rules out<br>
> > pre-merge testing, mind.<br>
><br>
> Why? does gitlab not support the model? having builds done in parallel<br>
> on runners closer to the test runners seems like it should be a thing.<br>
> I guess artifact transfer would cost less then as a result.<br>
<br>
Let's do some napkin math. The biggest artifacts cost we have in Mesa<br>
is probably meson-arm64/meson-arm (60MB zipped from meson-arm64,<br>
downloaded by 4 freedreno and 6ish lava, about 100 pipelines/day,<br>
makes ~1.8TB/month ($180 or so). We could build a local storage next<br>
to the lava dispatcher so that the artifacts didn't have to contain<br>
the rootfs that came from the container (~2/3 of the insides of the<br>
zip file), but that's another service to build and maintain. Building<br>
the drivers once locally and storing it would save downloading the<br>
other ~1/3 of the inside of the zip file, but that requires a big<br>
enough system to do builds in time.<br>
<br>
I'm planning on doing a local filestore for google's lava lab, since I<br>
need to be able to move our xml files off of the lava DUTs to get the<br>
xml results we've become accustomed to, but this would not bubble up<br>
to being a priority for my time if I wasn't doing it anyway. If it<br>
takes me a single day to set all this up (I estimate a couple of<br>
weeks), that costs my employer a lot more than sponsoring the costs of<br>
the inefficiencies of the system that has accumulated.<br>
_______________________________________________<br>
mesa-dev mailing list<br>
<a href="mailto:mesa-dev@lists.freedesktop.org" target="_blank">mesa-dev@lists.freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/mesa-dev" rel="noreferrer" target="_blank">https://lists.freedesktop.org/mailman/listinfo/mesa-dev</a><br>
</blockquote></div>