# Hardware Requirements for `TiDB Lightning`

| Import Mode | Hardware                  | Requirement                                                                                        |
| :---------- | :------------------------ | :------------------------------------------------------------------------------------------------- |
| Physical    | `CPU`                     | More than 32 `vCPU`                                                                                |
|             | Memory                    | More than 64 `GB`                                                                                  |
|             | Network                   | `10 Gbps NIC`                                                                                      |
| Logical     | `CPU`                     | More than 4 `vCPU`                                                                                 |
|             | Memory                    | More than 8 `GB`                                                                                   |
|             | Network                   | `1 Gbps NIC` or `10 Gbps NIC`                                                                      |

------------------------------------------------------------------------------------------------------------------------------------------------
For physical import mode:
- Memory and `CPU`:
  - It is recommended that you allocate `CPU` more than 32 cores and memory greater than `64 GiB` to get better performance.
- Storage: The `sorted-kv-dir` configuration item specifies the temporary storage directory for the sorted key-value files. The directory must be empty, and the storage space must be greater than the size of the dataset to be imported. For better import performance, it is recommended to use a directory different from `data-source-dir` and use flash storage and exclusive `I/O` for the directory.
- Network: A `10Gbps` Ethernet card is recommended.

For logical import mode:
- Memory and `CPU`:
  - It is recommended that you allocate `CPU` more than 4 cores and memory greater than `8 GiB` to get better performance. It is verified that `TiDB Lightning` does not have significant memory usage (no more than `5 GiB`) in the logical import mode. However, if you increase the value of region-concurrency, `TiDB Lightning` might consume more memory.
- Network: A `1 Gbps` or `10 Gbps` Ethernet card is recommended.