Why the size of pid hash tables depends on the size of RAM?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello list,

In "Understanding the Linux kernel" book, it was said that the "size
of pid hash table depends on the size of RAM; for example, for the
systems having 512MB of RAM, each hash table is stored in 4 page
frames and includes 2,048 entries". How is the size of pid hash table
determined? I guess the result in the example comes from

 512MB/8KB(size of THREAD_INFO) = 2048(entries)*32(bytes)

That is say, the size of pid hash table is determined by the maximum
number of process which could stored in physical memory. Is it
correct?

/Adam

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ



[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux