1 |
* Volker Armin Hemmann <volkerarmin@××××××××××.com> wrote: |
2 |
|
3 |
> > Is there anything userland apps could do to improve it ? |
4 |
> > eg. memory pools based on usage patterns ? |
5 |
> |
6 |
> sure, they can try to mlock themselves. But that is a nother bucket of |
7 |
> worms... |
8 |
|
9 |
Wouldn't that defeat the purpose of swapping ? |
10 |
|
11 |
I was thinking about something different: trying to design |
12 |
applications in a more swap-friendly way, eg. keeping data thats |
13 |
used together in a relatively closed set of pages. Or separate |
14 |
heavily used data from seldomly used ones. |
15 |
|
16 |
For example, an web browser could use an own pool per window. |
17 |
If some window is minimized, it shouldn't have to be repainted |
18 |
(in theory ;-)), and everything belonging to it could potentially |
19 |
be swapped out together, while other (active) windows dont need |
20 |
data from these pages. OTOH closing an window would free the |
21 |
whole pool - if it's an anonymous mmap()ed region, the kernel |
22 |
could simply throw the pages away. |
23 |
|
24 |
|
25 |
cu |
26 |
-- |
27 |
---------------------------------------------------------------------- |
28 |
Enrico Weigelt, metux IT service -- http://www.metux.de/ |
29 |
|
30 |
phone: +49 36207 519931 email: weigelt@×××××.de |
31 |
mobile: +49 151 27565287 icq: 210169427 skype: nekrad666 |
32 |
---------------------------------------------------------------------- |
33 |
Embedded-Linux / Portierung / Opensource-QM / Verteilte Systeme |
34 |
---------------------------------------------------------------------- |