From: Gioh Kim <gioh.kim@lge.com>
To: linux-mm@kvack.org, linux-kernel@vger.kernel.org,
dri-devel@lists.freedesktop.org, 이건호 <gunho.lee@lge.com>,
"Minchan Kim" <minchan@kernel.org>,
'김준수' <iamjoonsoo.kim@lge.com>
Subject: [RFC] background zero-set page for device
Date: Fri, 19 Dec 2014 16:54:54 +0900 [thread overview]
Message-ID: <5493D9CE.5040001@lge.com> (raw)
There was some discussion to create zero-set pages in background like this:
https://lkml.org/lkml/2004/10/30/73
I'm understand that it is not good for performance.
But I think it can help for a device in my platform.
I'm sorry I can't tell what it is.
But the device needs many zero-set pages, up to several MB,
so that device driver has a loop to calls alloc_page, memset(p, 0, PAGE_SIZE) and cache flush&invalidate.
And the device uses the pages and returns it to kernel. Kernel reads data in the page.
In this case, memset(0) must be done.
I think, if memset(0) is done at idle time, it can remove memset calling of ddk.
Is there any device that needs many zero-set pages?
Can backgound zero-setting page be good for the device?
--
Thanks,
Gioh Kim
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
WARNING: multiple messages have this Message-ID (diff)
From: Gioh Kim <gioh.kim@lge.com>
To: linux-mm@kvack.org, linux-kernel@vger.kernel.org,
dri-devel@lists.freedesktop.org, 이건호 <gunho.lee@lge.com>,
"Minchan Kim" <minchan@kernel.org>,
'김준수' <iamjoonsoo.kim@lge.com>
Subject: [RFC] background zero-set page for device
Date: Fri, 19 Dec 2014 16:54:54 +0900 [thread overview]
Message-ID: <5493D9CE.5040001@lge.com> (raw)
There was some discussion to create zero-set pages in background like this:
https://lkml.org/lkml/2004/10/30/73
I'm understand that it is not good for performance.
But I think it can help for a device in my platform.
I'm sorry I can't tell what it is.
But the device needs many zero-set pages, up to several MB,
so that device driver has a loop to calls alloc_page, memset(p, 0, PAGE_SIZE) and cache flush&invalidate.
And the device uses the pages and returns it to kernel. Kernel reads data in the page.
In this case, memset(0) must be done.
I think, if memset(0) is done at idle time, it can remove memset calling of ddk.
Is there any device that needs many zero-set pages?
Can backgound zero-setting page be good for the device?
--
Thanks,
Gioh Kim
next reply other threads:[~2014-12-19 7:54 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-12-19 7:54 Gioh Kim [this message]
2014-12-19 7:54 ` [RFC] background zero-set page for device Gioh Kim
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=5493D9CE.5040001@lge.com \
--to=gioh.kim@lge.com \
--cc=dri-devel@lists.freedesktop.org \
--cc=gunho.lee@lge.com \
--cc=iamjoonsoo.kim@lge.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=minchan@kernel.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.