torvalds@klaava.Helsinki.FI (Linus Benedict Torvalds) writes: : > __asm__("cmpl %%ecx,_current\n\t"\ : > "je 1f\n\t : : %ecx is set up with the task we want to switch to when we enter the : inline assembly statement, so this is obviosuly testing whether we are : trying to switch to the current task, in which case nothing is done. : Besides being an obvious optimization, I don't think the 386 allows a : tss-jump to the current task (but not having my books around me, I can't : check). On old versions of SunOS (3.x I think) not doing this cost us quite a bit of performance. If you dig up the old TCP mail that Van sent out about getting to the wire speed on Sun 3/60's, you'll see him disgustedly pointing out that useless context switching was costing us a chunk of performance. I'm curious: would it cost that much on the 386 to switch to yourself? Or would it be cheap? What do context switches on Linux cost? --- Larry McVoy (415) 336-7627 lm@sun.com
| Ingo Molnar | Re: 2.6.24-rc6-mm1 |
| Eric W. Biederman | [PATCH] ipv4/ipvs: Convert to kthread API |
| David Woodhouse | Re: [GIT *] Allow request_firmware() to be satisfied from in-kernel, use it in mor... |
| Phil Endecott | strace, accept(), ERESTARTSYS and EINTR |
git: | |
| Shawn O. Pearce | libgit2 - a true git library |
| walt | [VOTE] git versus mercurial |
| Eric Hanchrow | Re: how to backup git |
| Andreas Ericsson | git to libgit2 code relicensing |
| GVG GVG | ssh_exchange_identification: Connection closed by remote host |
| Richard Stallman | Real men don't attack straw men |
| Henning Brauer | Re: About Xen: maybe a reiterative question but .. |
| rezidue | Speed Problems |
| Jarek Poplawski | [PATCH take 2] pkt_sched: Protect gen estimators under est_lock. |
| Hannes Eder | [PATCH 00/27] drivers/net: fix sparse warnings |
| Herbert Xu | Re: incorrect cksum with tcp/udp on lo with 2.6.20/2.6.21/2.6.22 |
| Herbert Xu | UDP-Lite and /proc/net/snmp |
