Patent ID: 11941449
Assignee: INSTITUTE OF AUTOMATION, CHINESE ACADEMY OF SCIENCES
Field: Computer technology (Electrical engineering)
Classification: CPC G | IPC G  H

Claim 6:
7. A system for recording Ethernet data stream, used in a high-speed data acquisition system, comprising a closure isolator, a network card initializer, and a recorder, wherein
the closure isolator is configured to isolate a preset number of CPU cores after a Linux operating system is booted;
the network card initializer is configured to uninstall a kernel network card driver of the Linux operating system by an sysfs file system and create a hugepage memory pool; for each 10-gigabit network card, allocate a corresponding data-receiving buffer pool and a corresponding lock-free FIFO buffer by a hugetlbfs file system, and initialize a PCIE register of each of the plurality of 10-gigabit network cards by the sysfs file system based on a corresponding PCIE address such that each 10-gigabit network card enters into an acquisition state, wherein the network card initializer is configured to uninstall the kernel network card driver of the Linux operating system by an sysfs file system and create the hugepage memory pool by performing uninstalling by an unbind node in a driver directory of a pci device in the sysfs file system, setting the number of hugepages in an nr_hugepages node after the uninstalling is completed, and creating the hugepage memory pool; and
the recorder is configured to create a plurality of worker threads and binding the plurality of worker threads to the CPU core and continuously receive packets acquired by each 10-gigabit network card in a driving manner of user-space polling and perform disk recording on the packets acquired by each 10-gigabit network card, wherein the worker threads include a data receiving thread and a disk recording thread.