by throwaway91321 · 5y ago · 0 comments
I did some work with manufacturers who were in the process of moving manufacturing overseas some years ago. From my experience, the way the article presents the issue is detached from what really happens.
For instance, people look at a labor difference of $3 and $12, and assume that if these things were manufactured in the U.S. they would cost five times as much. But the thing is, labor is just one part of the cost. You also have things like R&D, advertising, raw materials, transportation, machinery, the cost of the manufacturing plant, etc. Some of those (like advertising) are going to stay the same no matter where you make your product, some would probably cost less overseas (real estate needed for factories), some would cost more overseas (transportation cost). There are also other issues that come up (like quality control issues) that come up when moving operations overseas that can be quite costly.
Here's the thing, though - let's say that a manufacturer makes a product for $10 and sells it for $12.50 - they're making $2.50 per unit sold. Now let's say that moving things overseas, when everything is taken into consideration, they can now make a product for $9.50, of which they keep 25 cents and pass the remainder 25 cents forward. Now they've increased their profit 10%, which is pretty big for them.
But what about the consumer? For simplicity, let's say that the 25 cents goes directly to them and the middlemen don't take a cut. And let's say that the final retail price doubles (the results would be even more extreme if they quadrupled like the article says). So the price goes down from $25.00 to $24.75 - they save 1%.
Now, obviously things are a lot more complex, and things are going to vary greatly depending on what's being manufactured. But from my experience, moving manufacturing overseas can often be profitable for companies while being only negligibly beneficial - or even detrimental (for instance, with poorer quality control) - for the consumers.
When products are not fully vertically integrated, and there's a large markup dowstream, the upstream manufacturing is highly incentivesed to "penny pinch" in a way that would be perceived to be highly counter-productive in an integrated organisation.
The example that first made me notice this was power management in server systems. If you're running $100K worth DBMS software (licenses) on a $100K box, all of which has a further $10-100M of web apps and systems relying on it, then it would be madness to throttle that CPU to save $50 in electricity annually, right?
Well, guess what: most places do this! It happens because they outsource the low-margin upstream component (colocation/hosting/cloud), and when you're a data centre provider living on thin margins, the cost of power / cooling can be very substantial relative to your own costs. If you rent the rack space for that server out for $500 per annum, that $50 of electricity is 10% more in your pocket! That's a big deal!
Meanwhile, that $50 saved has slowed down $100M worth of stuff, sometimes by 50% or more. But... that's not the hosting provider's problem.
(PS: Azure does this, and they don't let you turn it off.)
Provided their clients don't figure out what's going on and move to another provider. If the client has millions of dollars riding on that infrastructure, they'd likely be doing enough performance-monitoring to notice this kind of thing, no?
> Azure does this, and they don't let you turn it off
Azure really don't offer any never-throttled instances? What about their dedicated hosts?
I'm always pleasantly surprised when I see power management correctly configured at a client precisely because it is so rarely done correctly.
Even if cloud vendors do fix this one thing, there's about a dozen more such issues where the suppliers' interests don't line up with the downstream consumers' interests.
> Azure really don't offer any never-throttled instances? What about their dedicated hosts?
I don't believe so. For example, their highest performing single node is the HBv3, with 2x AMD EPYC 7V13 processors for a total of 120 cores / 240 threads.
On this page: https://docs.microsoft.com/en-us/azure/virtual-machines/work...
There is a box that says:
Nodes per Socket (NPS) = 2
L3 as NUMA = Disabled
NUMA domains within VM OS = 4
C-states = Enabled
The technical name for CPU power management is called "C-states". In other words, they've left it on the default (enabled) on a machine that they charge $40K/year for!Let's say I have Linux instances in the cloud. What would be the steps to take for proper power management?
I'm not sure calling C-States throttling is completely accurate, at least not in the way that you imply.
Modern CPUs have multiple mechanisms that can be called throttling in some way, but C-States are the least offensive and in modern CPUs actually increase performance.
There's a good basic explanation here [1] but in short :
- C-States is about idle cores, and powering them down. You can actually configure how deep you can power them down. Waking up does have a tiny cost in latency, yes, but it's mostly irrelevant (your core spends most of it's time waiting for data).
- P-States are what I would call "ok" throttling, those happen when non-idle, modern cores can scale their frequency up and down based on how much workload they have. Again, in theory purely about power saving and close to 0 impact on performance.
This was simple, and used to be just about power saving, disabling was ok. But things changed massively about 10+ years ago with the introductions of various Turbo mechanisms.
Turbo is about looking at your CPU as a whole (and not per core), and maximising performance of the loaded cores by pushing their frequency, using the power budget that used to be allocated to the idle cores (that are now powered off).
The way its done is by adding a few extra P-states that push the frequency a few hundred MHz. The more "C-State-down" cores you have, the higher the frequency of the working cores is pushed.
Extreme example : you have a 28 cores CPUs running a single thread workload on one core only, with 27 idle cores. With C-States disabled, you lose Turbo and are stuck with the single core running at the "non-Turbo" frequency. With C-States enabled, because you idled the non used cores, your working core gets higher clock speeds and higher performances.
(Things get more complex with AVX2 because those units have a large power consumption, and this is where you get into the very bad throttling)
[1] : https://software.intel.com/content/www/us/en/develop/blogs/c...
As far as I can tell, very few people ask similar questions. Those who do, come to interesting conclusions: https://jan.rychter.com/enblog/cloud-server-cpu-performance-...
"There. I've said it. These [Xeon] processors are slow. Dog slow, in fact."
My gimmick recently has been to upgrade Intel CPU VMs to AMD VMs. One benefit of the cloud is that this is literally just a menu selection. If it was on-prem, it would be a one-month argument to convince people that it's risk free, then a one-month argument with some beancounter, then a month of waiting while the pallets of kit ship in from Asia, then another two months of rack mounting and prepping for production.
"They let them pack lots of slow cores onto a single CPU die, put that into a server, and then sell twice that number of cores as "vCPUs" to us."
Azure also charges for licenses on a per vCPU basis
as if* they were physical CPUs! This means that in effect they've doubled their Windows and SQL revenue stream.I agree with your overall description - I believe economist describe problems of this sort as externalities[1].
The example of externalities that comes to mind is shipping companies running absurdly large ships to shave margins and so being concerned that their behemoth might lodge in the Suez Canal and disrupt much of world trade.
IE, producers not being concerned about the larger impact of their decisions.
But your example leaves me scratching my head. My impression is that cloud providers effectively selling CPU cycles by the dollar. There must be some pricing tradeoff for fast versus slow cycles. If a cloud provider can sell 20 throttled instances cheaper than 17 unthrottled instances, that's a deal that might suit buyer and seller.
But maybe there's something I'd missing here.
Getting them from China was not only cheaper but (to my surprise) faster and better. They got knowledgeable QA people that understood how EU countries need different tweaks, and they got anything we needed done quickly. Shipping was fast enough, and all in all, they just provided a much better and more affordable product than any country in the EU could have done.
It might be different for products that are very innovative, (most shoes aren't), but in that case maybe you can travel to China for a month and iterate quickly with the factory people.
But if you want plastic trainers, no doubt they make the best. I think it's just a simple case of doing a lot of it, specialising, getting good at it, as it would be anywhere. China now has more PCB fab know-how, equipment, people, etc. than anywhere.
I'm not saying that either of these claims are true, but it's not clear that they are false either.
When you're doing any kind of non-trivial amount of manufacturing in China, you've got a chain of exporters and workers behind you that specialize in making the un-containering experience fantastic. As in, the standees of celebrity endorsers holding the shoe in their hand for the merchandising station are manufactured right across the street from where the shoe is actually made. The box company making the box are very close by as well. And then even the guys loading up the cargo are making it so it can basically go onto a container in China, go to a warehouse in LA, and be shipped over to Helena, MT, and have six or seven large cardboard containers all slide out of a twenty-footer, then the truck driver is on to the next shoe store.
ALL that labour of packaging and boxing and merchandising all happens at basically starvation wages for poor Chinese.
It's not JUST making the shoes, it's making the shoes, making the boxes for the shoes, making the merchandising for the shoes, and packaging all that shit together in a container-friendly way that is also friendly to unboxing by American minimum-wage workers.
The "supply chain" is about much more than just the contents of the box, but about the entire chain it takes to get to retail.
It takes 20 seconds to unwrap a heaphone, and nicely pack it, or 40 seconds on average if you account for people not being robots, and making breaks, going to bathroom. You get around 500-600 packed headphones per worker, per day. If you pay CAD $120-$140 a day (back in days when CAD was > USD,) it's just ¢40-¢50 per pack if you ad for other employment expenses. Easily, easily doable for a product selling for $30, whole costing near nothing in parts, and materials.
Containerization forces the insertion of middlemen. Someone is in charge of breaking down a container and then storing it in a warehouse with a bunch of other products that can all get shipped at once to a consumer. The hidden tax from so many more people being involved in the supply chain is underestimated by a lot of people.
Edit: I think we can see huge companies tightly locked into their paradigm because it involves so much capital and so many connections to suppliers etc.
For a while, but your competitors will do the same, and unless there's a cartel, one of them will pass all the savings on to consumers, and the rest will follow.