Re: [patch 00/41] cpu alloc / cpu ops v3: Optimize per cpu access

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Eric Dumazet
Date: Monday, June 9, 2008 - 1:15 pm

Andi Kleen a écrit :

I am not sure Christoph was refering to actual instructions.

I was suggesting using for static percpu (vmlinux or modules) :

vmlinux : (offset31 computed by linker at vmlinux link edit time)
incl  %gs:offset31

modules : (offset31 computed at module load time by module loader)
incl %gs:offset31

(If we make sure all this stuff is allocated in first chunk)

And for dynamic percpu :

movq   field(%rdi),%rax
incl    %gs:(%rax)   /* full 64bits 'offsets' */

I understood (but might be wrong again) that %gs itself could not be used with an offset > 2GB, because
the way %gs segment is setup. So in the 'dynamic percpu' case, %rax should not exceed 2^31





--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[patch 00/41] cpu alloc / cpu ops v3: Optimize per cpu access, Christoph Lameter, (Thu May 29, 8:56 pm)
Re: [patch 00/41] cpu alloc / cpu ops v3: Optimize per cpu ..., Christoph Lameter, (Thu May 29, 10:03 pm)
Re: [patch 00/41] cpu alloc / cpu ops v3: Optimize per cpu ..., Christoph Lameter, (Thu May 29, 10:27 pm)
Re: [patch 00/41] cpu alloc / cpu ops v3: Optimize per cpu ..., Christoph Lameter, (Thu May 29, 11:16 pm)
Re: [patch 00/41] cpu alloc / cpu ops v3: Optimize per cpu ..., Christoph Lameter, (Thu May 29, 11:22 pm)
Re: [patch 00/41] cpu alloc / cpu ops v3: Optimize per cpu ..., KAMEZAWA Hiroyuki, (Thu May 29, 11:51 pm)
Re: [patch 00/41] cpu alloc / cpu ops v3: Optimize per cpu ..., Christoph Lameter, (Fri May 30, 10:50 am)
Re: [patch 00/41] cpu alloc / cpu ops v3: Optimize per cpu ..., Christoph Lameter, (Fri May 30, 11:12 am)
Re: [patch 00/41] cpu alloc / cpu ops v3: Optimize per cpu ..., Christoph Lameter, (Mon Jun 9, 11:44 am)
Re: [patch 00/41] cpu alloc / cpu ops v3: Optimize per cpu ..., Eric Dumazet, (Mon Jun 9, 1:15 pm)