Re: [PATCH] net: make ip_rt_acct a normal percpu var

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Eric Dumazet
Date: Wednesday, November 19, 2008 - 4:23 pm

Rusty Russell a écrit :

Then, if we really want to run 4096 cpus on a machine, we dont want to allocate
16 MBytes of memory for these ip_rt_acct counters, or even more for SNMP mibs.

Maybe its time to design a new mechanism, to avoid the basic "one variable" shared
by all cpus, and avoid the overkill "one separate variable for each cpu", and loop
4096 times to do the sum of this variable...

Something that would allocate a maximum of eight blocs.

Then atomic ops would be necessary for updates of SNMP counters (only if NR_CPUS > 8)


--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] net: make ip_rt_acct a normal percpu var, Rusty Russell, (Mon Nov 17, 3:20 am)
Re: [PATCH] net: make ip_rt_acct a normal percpu var, Eric Dumazet, (Mon Nov 17, 3:36 pm)
Re: [PATCH] net: make ip_rt_acct a normal percpu var, Rusty Russell, (Tue Nov 18, 8:38 am)
Re: [PATCH] net: make ip_rt_acct a normal percpu var, David Miller, (Wed Nov 19, 3:20 pm)
Re: [PATCH] net: make ip_rt_acct a normal percpu var, Rusty Russell, (Wed Nov 19, 4:13 pm)
Re: [PATCH] net: make ip_rt_acct a normal percpu var, David Miller, (Wed Nov 19, 4:17 pm)
Re: [PATCH] net: make ip_rt_acct a normal percpu var, Eric Dumazet, (Wed Nov 19, 4:23 pm)
Re: [PATCH] net: make ip_rt_acct a normal percpu var, Rusty Russell, (Wed Nov 19, 5:28 pm)
Re: [PATCH] net: make ip_rt_acct a normal percpu var, Rusty Russell, (Wed Nov 19, 9:22 pm)