From: Pauli Nieminen <suokkos@gmail.com>
To: dri-devel@lists.sourceforge.net
Subject: drm/ttm: Pool allocator simplification and sysfs interface
Date: Thu, 25 Mar 2010 00:36:42 +0200 [thread overview]
Message-ID: <1269470209-30391-1-git-send-email-suokkos@gmail.com> (raw)
This patch series simplifies pool management code and adds sysfd interface
to control pool functionality from sysfs.
Pool size reduction only happens when mm shrinker request for free
pages. To prevent pool from wasting too much free memory there is
user configureable maximum size. If pool tries to grow to larger
sizes than maximum pages are directly freed instead of putting to pool.
Number of pages allocated in refill is user configureable. Default
is same as number of struct page pointers fits to a page.
Allocation size is limited so that user can't set insanely large numbers.
warning is generated when large allocation size doesn't make sense for
performance.
If ttm is running close to memory limit pool can't add more than
allocation_size pages to the memory use. This is quarenteed with
rule that only one pool refill can be running at a time.
------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
--
next reply other threads:[~2010-03-24 22:36 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-03-24 22:36 Pauli Nieminen [this message]
2010-03-24 22:36 ` [PATCH 1/7] drm/ttm: add pool wc/uc page allocator Pauli Nieminen
2010-03-24 22:36 ` [PATCH 2/7] drm/ttm: Add debugfs output entry to pool allocator Pauli Nieminen
2010-03-24 22:36 ` [PATCH 3/7] drm/radeon/kms: Add ttm page pool debugfs file Pauli Nieminen
2010-03-24 22:36 ` [PATCH 4/7] drm/nouveau: " Pauli Nieminen
2010-03-24 22:36 ` [PATCH 5/7] arch/x86: Add array variants for setting memory to wc caching Pauli Nieminen
2010-03-24 22:36 ` [PATCH 6/7] drm/ttm: Use set_pages_array_wc instead of set_memory_wc Pauli Nieminen
2010-03-24 22:36 ` [PATCH 7/7] drm/ttm: Add sysfs interface to control pool allocator Pauli Nieminen
2010-03-26 13:59 ` [PATCH 1/7] drm/ttm: add pool wc/uc page allocator Jerome Glisse
2010-03-26 22:04 ` Pauli Nieminen
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=1269470209-30391-1-git-send-email-suokkos@gmail.com \
--to=suokkos@gmail.com \
--cc=dri-devel@lists.sourceforge.net \
/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.