From: Michael Schmitz <schmitzmic@gmail.com>
To: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Geert Uytterhoeven <geert@linux-m68k.org>,
Christoph Hellwig <hch@lst.de>,
linux-m68k <linux-m68k@lists.linux-m68k.org>,
John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
Subject: Re: [PATCH RFC v2] m68k: remove get_fs()/set_fs()
Date: Sat, 10 Jul 2021 14:30:51 +1200 [thread overview]
Message-ID: <314437f7-4223-d841-e1e1-87cbf9a4313d@gmail.com> (raw)
In-Reply-To: <CAHk-=wjNcVijop--SC6XABVH675jr8oZ0XACbeXZX-j5QTtxjQ@mail.gmail.com>
Hi Linus,
Am 10.07.2021 um 09:18 schrieb Linus Torvalds:
> On Fri, Jul 9, 2021 at 2:08 PM Michael Schmitz <schmitzmic@gmail.com> wrote:
>>
>> The 8 byte copies are by far the majority.
>
> llseek might actually not be unusual. And the timeval structure is - I
> think - 8 bytes on 32-bit architectures and common for select timeouts
> etc. And select/poll can be one of the most common system calls out
> there depending on loads (usually graphical programs).
There's more const short reads in the old IDE code (1, 4 and 7 bytes,
the latter two in the ioctl syscall), and one 8 byte one in the libata
code (ata_get_identity()). None of this looks anywhere near performance
critical as llseek or select/poll.
> But again - I don't think it's even worth worrying about in
> architecture code. If you actually can measure it, I think we should
> fix it in generic code rather than have architectures work around some
> issue one by one.
I doubt it makes enough of a difference to measure, but maybe the llseek
impact is large enough to show in IO benchmarks. I'll run tests on
Christoph's latest patch series anyway so I'll have data to decide that.
> I think the main issue for m68k should be "is it stable and works". At
> least first. And then worry about copy_to/from_user() with a constant
> size as a very very distant second concern.
So far, it looks like there's no regressions on either 030 or 040. Can't
see much difference on 060 other than its use of sfc/dfc in the ifpsp060
support code, but that's all inside 'unimplemented instruction' trap
handlers that can't be preempted AFAIK.
I'll ask Adrian to test these patches on 060 as well though.
Cheers,
Michael
>
> Linus
>
next prev parent reply other threads:[~2021-07-10 2:43 UTC|newest]
Thread overview: 31+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-07-08 1:48 [PATCH RFC v2] m68k: remove get_fs()/set_fs() Michael Schmitz
2021-07-08 2:51 ` Linus Torvalds
2021-07-08 3:01 ` Linus Torvalds
2021-07-08 3:37 ` Michael Schmitz
2021-07-08 4:31 ` Christoph Hellwig
2021-07-08 4:33 ` Michael Schmitz
2021-07-08 4:58 ` Christoph Hellwig
2021-07-08 5:48 ` Michael Schmitz
2021-07-08 12:57 ` Christoph Hellwig
2021-07-08 18:20 ` Linus Torvalds
2021-07-09 0:05 ` Michael Schmitz
2021-07-08 19:28 ` Michael Schmitz
2021-07-09 0:31 ` Michael Schmitz
2021-07-09 4:22 ` Christoph Hellwig
2021-07-09 5:47 ` Michael Schmitz
2021-07-09 7:29 ` Geert Uytterhoeven
2021-07-09 8:34 ` Michael Schmitz
2021-07-09 8:53 ` Christoph Hellwig
2021-07-09 9:00 ` Michael Schmitz
2021-07-09 11:20 ` Geert Uytterhoeven
2021-07-09 19:25 ` Michael Schmitz
2021-07-09 19:52 ` Michael Schmitz
2021-07-09 20:03 ` Linus Torvalds
2021-07-09 20:13 ` Linus Torvalds
2021-07-09 19:53 ` Linus Torvalds
2021-07-09 21:08 ` Michael Schmitz
2021-07-09 21:18 ` Linus Torvalds
2021-07-10 2:30 ` Michael Schmitz [this message]
2021-07-09 11:35 ` Geert Uytterhoeven
2021-07-08 7:36 ` Andreas Schwab
2021-07-08 4:28 ` Christoph Hellwig
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=314437f7-4223-d841-e1e1-87cbf9a4313d@gmail.com \
--to=schmitzmic@gmail.com \
--cc=geert@linux-m68k.org \
--cc=glaubitz@physik.fu-berlin.de \
--cc=hch@lst.de \
--cc=linux-m68k@lists.linux-m68k.org \
--cc=torvalds@linux-foundation.org \
/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;
as well as URLs for NNTP newsgroup(s).