Re: [tip:perfcounters/core] perf_counter: x86: Fix call-chain support to use NMI-safe methods
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
- Subject: Re: [tip:perfcounters/core] perf_counter: x86: Fix call-chain support to use NMI-safe methods
- From: Linus Torvalds <torvalds@xxxxxxxxxxxxxxxxxxxx>
- Date: Mon, 15 Jun 2009 13:04:02 -0700 (PDT)
- Cc: Mathieu Desnoyers <mathieu.desnoyers@xxxxxxxxxx>, mingo@xxxxxxxxxx, hpa@xxxxxxxxx, paulus@xxxxxxxxx, acme@xxxxxxxxxx, linux-kernel@xxxxxxxxxxxxxxx, a.p.zijlstra@xxxxxxxxx, penberg@xxxxxxxxxxxxxx, vegard.nossum@xxxxxxxxx, efault@xxxxxx, jeremy@xxxxxxxx, npiggin@xxxxxxx, tglx@xxxxxxxxxxxxx, linux-tip-commits@xxxxxxxxxxxxxxx
- In-reply-to: <20090615194344.GA12554@xxxxxxx>
- References: <tip-74193ef0ecab92535c8517f082f1f50504526c9b@xxxxxxxxxxxxxx> <alpine.LFD.2.01.0906151007560.3305@xxxxxxxxxxxxxxxxxxxxx> <20090615171845.GA7664@xxxxxxx> <alpine.LFD.2.01.0906151029160.3305@xxxxxxxxxxxxxxxxxxxxx> <20090615180527.GB4201@Krystal> <alpine.LFD.2.01.0906151125320.6276@xxxxxxxxxxxxxxxxxxxxx> <20090615183649.GA16999@xxxxxxx> <alpine.LFD.2.01.0906151152170.6276@xxxxxxxxxxxxxxxxxxxxx> <20090615194344.GA12554@xxxxxxx>
- User-agent: Alpine 2.01 (LFD 1184 2008-12-16)
On Mon, 15 Jun 2009, Ingo Molnar wrote:
>
> Well i guess it depends. For server apps it is true - syscalls are a
> lot more dominant, MMs are long-running so any startup cost gets
> amortized and pagefaults are avoided.
>
> For something like a kernel build we have 7 times as many pagefaults
> as syscalls:
Ingo - calm down.
This is not about page faults.
This is purely about taps FROM KERNEL SPACE.
Yes, for the kernel build we have 7 times as many page faults as system
calls, BUT I BET 99.9% of them are from user mode!
The whole "open-code iret" only works for exceptions that happened in
kernel mode. That's a _vanishingly_ small number (outside of device
interrupts that happen during idle).
Linus
--
To unsubscribe from this list: send the line "unsubscribe linux-tip-commits" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
[Index of Archives]
[Linux Stable Commits]
[Linux Stable Kernel]
[Linux Kernel]
[Linux USB Devel]
[Linux Video &Media]
[Linux Audio Users]
[Yosemite News]
[Linux SCSI]