中文

I've learned these lessons after AI storage's budget was blown out of millions.

2026-08-14 Huanan Tengfei Technology
I've learned these lessons after AI storage's budget was blown out of millions.

Last fall, I was at a machine visual inspection factory in Foshan, where the chief of technicals was watching the storage surveillance all day long. I still remember that scene. —— It's on the line. ten A couple of defective images from industrial cameras. , At every second. one thousand Chang. speed Go on. storage Injecting. ,

Cover Map

Last fall, I was at a machine visual inspection factory in Foshan, where the chief of technicals was watching the storage surveillance all day long. I still remember that scene. —— It's on the line. ten A couple of defective images from industrial cameras. , At every second. one thousand Chang. speed Go on. storage Injecting. , But... GPU The training cluster. , Utilization rate 40% Up and down. , I can't get it up. 。

Zhang was looking at me. , Pointing at the wave line on the monitor, :“ Look. , graphics memory It fell off and went up. , Doesn't it look like someone's hiccuping? ? I spent 60 million on a full flash array, and I bought GPU and it was almost out of money, and it turned out to be empty. ”

He didn't do nothing. The original NAS was used to run Gigabit Network, and the first reading of the file was blocked, and a Epoch was trained to wait half a hours. He then bit his teeth on a full-scatter array, and changed several rounds of protocol from iscsi to NFS, and the single bandwidth went up, but once he ran multiple sets of training, storage latency jumped over 200 ms. Then the distributed storage was changed, the IOPS data was pretty, but the interaction of the file lock and metadata became a new bottleneck. Three sets of programs, 120 million budget burned back and forth in the second half of the year, the model still failed to stabilize.

I've seen it so many times. Enterprise IT Policymakers are right. AI storage The perception. , It's usually still there. “ Large capacity 、 Highbandwidth ” Here. two In a word. 。 But storage of the AI era, which is completely different from the storage used in the traditional database or virtualization scene. The question is not how hard drives are fast, but how data flow and how they are eaten.

Let's get started. one Top cores The facts :AI Training and reasoning are right. storage Needs , It's not. “ capacity ”, But... “ Consumption data speed ”。 GPU and so on, every second, the real silver and silver are burning.

Traditional operations storage, such as ERP, OA, databases, are typical of "low concurrent, large-scale readings". One of the requests came in, took dozens of MB data from disk, and the bandwidth arrived, and latency was no big deal. But AI training is different. Especially with visual models, hundreds of thousands of small maps in the data set, each of which amounts to dozens of KB to hundreds of KB. The training framework allows GPU to collect a set of data that comes in several hundred small files from storage at the same time. This is the typical "high-middle-haired, randomly small IO."

A lot of storage listings are here. The random reading performance of the full flash array is not bad, but when the NFS protocol is taken, the locking mechanism and attribute interaction of the protocol itself consumes a large amount of CPU, with a maximum metadata operation per second. But as soon as we get to thousands of files and read them, storage processor is overloaded and the front end bandwidth is white. Zhang encountered a typical "storage neck in metadata" rather than "media speed".

In addition, there are two actions in the training process that test storage: one is Checkpoint saving, and one is log writing.

Checkpoint It's a training memory. , It's just a few dozen. GB Big paper. 。 The problem is that the training framework usually blocks the writing while storage is busy reading small files at this point, and the disk and controller is dealing with two opposing data streams, bandwidth and latency double deterioration. More interestingly, Checkpoint has a simultaneous need -- each node is to see the same snapshot for multi-machine training, which places additional demands on document consistency, a mechanism that many storage does not have.

There is also one that can easily be ignored: the data pre-processing conduit. The data should, logically, have been converted to TFRecord or a similar efficient format before entering training. But I've seen a lot of projects, and the engineers are going to let the training framework read the original picture. JPEG decoded, GPU didn't eat, CPU blew up. You blame storage for this time. No, it's not.

As for the reasoning scene, the focus is different. The reasoning latency is end-to-end, from Client software requests to return results where data is read-in more routes than we thought. Model specifications is to be pulled from storage into graphics memory, feature data is to be read in real time and the return results may be returned to log and sample database. A enterprise-grade reasoning service, which handles hundreds of requests per second, means that storage must maintain a stable low latency and no sting. The traditional HDD array's search for latency is fatal in this scenario, so many old systems are no longer able to survive when they reach a certain concurrent.

How do you choose not to step on the pit? Based on my experience with Chang and Zhang, I put together a few steps of operationalization in the light of some of the fine-tuning done to other clients.

First step, do storage access to the picture. Don't rush to get the equipment. , Let's get this straight. AI How does it work? storage 。 Run to the production environment or test operation and install an indicator acquisition tool to record the size distribution, concurrent quantity, sequence/random ratio, read/write ratio for storage over a day. Many storage manufacturers have free assessment tools, which take half a day to pull out the data. When Chang was finished, he found that he had a 85% request that was less than 64KB, only 15% was a large piece -- the answer was clear: he needed not a array bandwidth, but a high metadata performance.

Step two, layered storage, don't expect one. Thermal data (data set under training, Checkpoint) should be placed on the NVMe full flash, requiring a single volume IOPS high, latency low, preferably by NVMe-oF protocol; Temperature data (historical data, test set) can be placed on SATA SSD; Cold data (original pictures, archive) are placed in object storage at low cost. The key point is to have an automatic migration strategy between the layers, so that data are not stacked at the wrong level. We're putting on the old Layer Three structure, two nodes of NVMe distributed storage, capacity small but very powerful metadata for a single roll; The cold-data layer consists of a normal X86 server plus HDD object storage. In doing so, the cost is lower than a single all-out solution.

The third step, small documents are first to be composing large documents. This step is very effective. The original photo files are many, so that the data sets are packaged in a pre-procession mission, like TFRecord, a high-efficiency format that allows the training framework to read in sequence large files every time it is read. Don't forget to turn up the prep and cache windows, which can be used under Linuxposix_fadviseSets the order of reading for anticipation, and reduces the page cache dithering. We have measured that this change in light allows GPU utilization from 40% to over 60%. The Zhang team later changed 90% training data to a pack format, training speed almost twice as fast.

Step four, rewrite storage access to the data pipe. The data loader of the training framework (e. g. DataLoader for PyTorch) does not need to read local files directly, and can be read from object storage or shared file system. cache allows for the production of hotspot data in conjunction with cache intermediates (e. g. Redis or Memcached) and can significantly reduce the repetition. Pre-empting data is also a key action by pulling the next data to local memory in advance. In plain language, don't let GPU wait on the data, and let the data line up in front of GPU.

Fifth step, go directly to parallel file systems or high performance distribution storage if budget allows. Supported RDMA and GPUDirect Storage, storage data for these products can go directly into GPU graphics memory by bypassing CPU, which is a completely qualitative change. We've been paying you. one automatic Driving. company Programs made , That's what it's about. storage Add parallel file system , Training multi-node scale from 4 Machine expansion Present. 20 Machine , Accelerator from the original 2.1 Multiplier to 19 Double , Very scary. 。 But if your Network is to cooperate, at least is to run 25Gbps to Lo, 100GbE best. Or else. storage Faster. , The net's blocked. 。

Summarizing, just six words.

First, AI selection, first looking at data access. Don't ask "How big is capacity" first, but "What's my model reading pattern?"

Second, storage performance bottlenecks are often in metadata and protocols processor and not in the hard drive itself. The pit is the most insidious because the evaluation software test threads is good for reading big files, and the real load is exposed as soon as you run.

Thirdly, the GPU utilization factor was low, so let's not rush to the model. Let's check if the data path is blocked. We took storage as a silent match, but in fact, your GPU is waiting for data, and your training speed is locked to the storage.

Fourth, the balance of cost and performance is based on a layered design, not bet on a single black box device. The old Zhang subsequently redistributed the budget to achieve more stable performance at the original price of one third.

Fifth, surveillance must be end-to-end. From GPU, from application, from storage, three layers of observations contrast, to locate real bottlenecks. Don't just look at the dashboard and come to a conclusion.

Sixth, operations and maintenance capabilities to keep up. AI storage is completely different from the traditional storage management. You don't need an engineer who'll fit in with RAID, but you need someone who understands the training framework data stream. This was largely unforeseeable, and it was only when problems were found that few people had such a capacity in the market.

The old Zhang system went through. We're... Huanan Tengfei Technology I've helped him reprogramme. storage Layer , Match frame level data load optimization ,GPU We've stabilized our utilization rate. 90% Above , So that's where you run every time you train. two A sky model. , Now. five hours Results 。 He later told me that he knew that the pit of storage was so deep that he should have thought out the data path before he did it.

In fact, many IT teams are much more focused on computing than storage when building AI infrastructure. And that's understandable, after all, GPU was bought at a very high price, and storage looks like "just a cabinet." But if your data conduit is a thin neck, even GPU, even stronger, it'll just starve to death. Tell me the truth. , Like this. AI storage It's a problem with selection. Item , We've taken over a lot of things in South China. , Questions. height Similar —— storage Not fast enough. , It's not a match. 。 This lesson, I hope you don't use a million-dollar lesson.

Related Content