# Linux kernel

| Commands | What it does |
|:--------:|:------------:|
| sudo update-initramfs -c -k *kernelversion* | Generate a new initramfs image with version |
| sudo kernelstub -a "maxcpus=2" | Support disabling cores in the BIOS |
| sudo kernelstub -a "nvme_core.default_ps_max_latency_us=####" | [Change NVMe wake-up times](https://wiki.archlinux.org/title/Solid_state_drive/NVMe#Power_Saving_(APST)) |
| sudo kernelstub -a "intel_idle.max_cstate=4" | [Change Intel C-State Level](https://www.kernel.org/doc/html/latest/admin-guide/pm/intel_idle.html) | 