A queue management method, comprising: writing a packet descriptor, PD, queue to a dynamic random access memory, DRAM, wherein the PD queue comprises multiple PDs, and the multiple PDs correspond one-to-one to multiple packets comprised in a first packet queue; and writing at least one PD in the PD queue to a static random access memory, SRAM, wherein the at least one PD comprises a queue head of the PD queue; the method characterized in that: after the writing a PD queue to a DRAM, and before the writing at least one PD in the PD queue to an SRAM, the method further comprises: determining that a credit of the first packet queue is greater than or equal to a preset first threshold, and a capacity of available storage space in the SRAM is greater than or equal to a preset second threshold, wherein the credit of the first packet queue is used to indicate a quantity of packets that can dequeue from the first packet queue or a quantity of bytes of packets that can dequeue from the first packet queue and the preset first threshold is determined according to one or more of the following: a priority, a queue length, and a sleep period that are of the first packet queue, a quantity of packets in the first packet queue, and the capacity of the available storage space in the SRAM; and the writing at least one PD in the PD queue to an SRAM specifically comprises: if the capacity of the available storage space in the SRAM is greater than or equal to the second threshold, writing the at least one PD in the PD queue to the SRAM. writing a packet descriptor, PD, queue to a dynamic random access memory, DRAM, wherein the PD queue comprises multiple PDs, and the multiple PDs correspond one-to-one to multiple packets comprised in a first packet queue; and writing at least one PD in the PD queue to a static random access memory, SRAM, wherein the at least one PD comprises a queue head of the PD queue; the method characterized in that: after the writing a PD queue to a DRAM, and before the writing at least one PD in the PD queue to an SRAM, the method further comprises: determining that a credit of the first packet queue is greater than or equal to a preset first threshold, and a capacity of available storage space in the SRAM is greater than or equal to a preset second threshold, wherein the credit of the first packet queue is used to indicate a quantity of packets that can dequeue from the first packet queue or a quantity of bytes of packets that can dequeue from the first packet queue and the preset first threshold is determined according to one or more of the following: a priority, a queue length, and a sleep period that are of the first packet queue, a quantity of packets in the first packet queue, and the capacity of the available storage space in the SRAM; and the writing at least one PD in the PD queue to an SRAM specifically comprises: if the capacity of the available storage space in the SRAM is greater than or equal to the second threshold, writing the at least one PD in the PD queue to the SRAM. determining that a credit of the first packet queue is greater than or equal to a preset first threshold, and a capacity of available storage space in the SRAM is greater than or equal to a preset second threshold, wherein the credit of the first packet queue is used to indicate a quantity of packets that can dequeue from the first packet queue or a quantity of bytes of packets that can dequeue from the first packet queue and the preset first threshold is determined according to one or more of the following: a priority, a queue length, and a sleep period that are of the first packet queue, a quantity of packets in the first packet queue, and the capacity of the available storage space in the SRAM; and the writing at least one PD in the PD queue to an SRAM specifically comprises: if the capacity of the available storage space in the SRAM is greater than or equal to the second threshold, writing the at least one PD in the PD queue to the SRAM.