__read_mostly The __read_mostly macro uses __section() to place a variable or function into the ".data.read_mostly" section of the (kernel) elf(5). The use of __read_mostly allows infrequently modified data to be grouped together; it is expected that the cachelines of rarely and frequently modified data structures are this way separated. Candidates for __read_mostly include variables that are initialized once, read very often, and seldom written to.
读多写少,放在.data.read_mostly段