From: Crutcher Dunnavant <crutcher@gmail.com>
To: Pavel Machek <pavel@ucw.cz>
Cc: Yi Yang <yang.y.yi@gmail.com>,
"Valdis.Kletnieks@vt.edu" <Valdis.Kletnieks@vt.edu>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
"akpm@osdl.org" <akpm@osdl.org>,
"mj@atrey.karlin.mff.cuni.cz" <mj@atrey.karlin.mff.cuni.cz>,
"crutcher+kernel@datastacks.com" <crutcher+kernel@datastacks.com>,
"schwab@suse.de" <schwab@suse.de>
Subject: Re: [PATCH 2.6.23] SysRq: print hotkey info while pressing undef key, try 2
Date: Wed, 24 Oct 2007 11:04:46 -0700 [thread overview]
Message-ID: <D0A3C020-52D3-444B-A75B-9237EE4C2774@gmail.com> (raw)
In-Reply-To: <20071018171041.GA4510@elf.ucw.cz>
Crutcher Dunnavant
On Oct 18, 2007, at 10:10 AM, Pavel Machek <pavel@ucw.cz> wrote:
> Hi!
>
>>> 1) He has been told "recreate the problem, hit alt-sysreq-
>>> cokebottle,
>>> and send me the results". He has a mission, and the only feedback
>>> he
>>> needs is (a) that he hit cokebottle and not pepsibottle, and (b) the
>>> resulting output.
>>>
>>> 2) He's already read the file in Documentation/ and just needs a
>>> reminder.
>>> In this case, the fact it's only 2 or 3 lines and doesn't scroll
>>> other
>>> stuff
>>> out of sight is more important.
>>>
>> Screen scroll isn't a problem.
>>
>> "SysRq : HELP : loglevel0-8 reBoot Crashdump tErm Full kIll saK
>> showMem
>> Nice powerOff showPc show-all-timers(Q) unRaw Sync showTasks Unmount
>> shoW-blocked-tasks"
>>
>> The above help information isn't very user-friendly.
>
> Seems perfectly reasonably to me... parhaps "Full" should be replaced
> with "Force-oom"...
>
>>>> In addition, that funtion has a big loop with another big loop
>>>> embedded which is very inefficient, it is intended to skip some hot
>>>>
>>>
>>> You're optimizing code that hopefully never gets executed, and
>>> even if
>>> it does, you have the optimization *backwards*. If you're worried
>>> about
>>> the efficiency, trim it down to output 3 lines - do you realize
>>> how many
>>> instructions it takes in the VGA and fb drivers to actually
>>> *output* all
>>> these lines? (Seriously - I had a 1.6Ghz P4 laptop, where
>>> scrolling the
>>> screen with vga=791 actually ran so slowly that it horqued up the
>>> timer
>>> initialization code. *That* was a fun bug to figure out..)
>>>
>> To remove a bad loop is just a plus fix. That loop is really
>> inefficient.
>
> No, it is not a fix and no, it is not inefficient.
>
>>>> +static char __read_mostly sysrq_hot_key_table[36] = {
>>>> + '0', '1', '2', '3', '4', '5', '6', '7', '8', '9',
>>>> + 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j',
>>>> + 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't',
>>>> + 'u', 'v', 'w', 'x', 'y', 'z'
>
> This has to go.
> Pavel
Wow. I've not looked at this in a long time.
A. This imp of sysrq was designed to be run time registerable by
modules.
B. Some keys aren't valid on some arches.
C. If you care about the lookup time for one table scan, sysrq can't
help you anyway.
>
> -- d
> (english) http://www.livejournal.com/~pavelmachek
> (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
prev parent reply other threads:[~2007-10-24 19:48 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-10-17 15:22 Yi Yang
2007-10-17 16:10 ` Frans Pop
2007-10-18 14:40 ` Yi Yang
2007-10-17 20:09 ` Valdis.Kletnieks
2007-10-17 22:13 ` Pavel Machek
2007-10-18 14:34 ` Yi Yang
2007-10-18 17:10 ` Pavel Machek
2007-10-24 18:04 ` Crutcher Dunnavant [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=D0A3C020-52D3-444B-A75B-9237EE4C2774@gmail.com \
--to=crutcher@gmail.com \
--cc=Valdis.Kletnieks@vt.edu \
--cc=akpm@osdl.org \
--cc=crutcher+kernel@datastacks.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mj@atrey.karlin.mff.cuni.cz \
--cc=pavel@ucw.cz \
--cc=schwab@suse.de \
--cc=yang.y.yi@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®