Repository navigation
Commit 2ffd867
ksm: sysfs and defaults
At present KSM is just a waste of space if you don't have CONFIG_SYSFS=y
to provide the /sys/kernel/mm/ksm files to tune and activate it.
Make KSM depend on SYSFS? Could do, but it might be better to provide
some defaults so that KSM works out-of-the-box, ready for testers to
madvise MADV_MERGEABLE, even without SYSFS.
Though anyone serious is likely to want to retune the numbers to their
taste once they have experience; and whether these settings ever reach
2.6.32 can be discussed along the way.
Save 1kB from tiny kernels by #ifdef'ing the SYSFS side of it.
Signed-off-by: Hugh Dickins <hugh.dickins@tiscali.co.uk>
Acked-by: Izik Eidus <ieidus@redhat.com>
Cc: Andrea Arcangeli <aarcange@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>1 parent 1c2fb7a commit 2ffd867
1 file changed
Lines changed: 19 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
163 | 163 | | |
164 | 164 | | |
165 | 165 | | |
166 | | - | |
| 166 | + | |
167 | 167 | | |
168 | 168 | | |
169 | | - | |
| 169 | + | |
170 | 170 | | |
171 | 171 | | |
172 | | - | |
| 172 | + | |
173 | 173 | | |
174 | 174 | | |
175 | 175 | | |
176 | 176 | | |
177 | | - | |
| 177 | + | |
178 | 178 | | |
179 | 179 | | |
180 | 180 | | |
| |||
506 | 506 | | |
507 | 507 | | |
508 | 508 | | |
| 509 | + | |
| 510 | + | |
| 511 | + | |
| 512 | + | |
509 | 513 | | |
510 | 514 | | |
511 | 515 | | |
| |||
563 | 567 | | |
564 | 568 | | |
565 | 569 | | |
| 570 | + | |
566 | 571 | | |
567 | 572 | | |
568 | 573 | | |
| |||
1454 | 1459 | | |
1455 | 1460 | | |
1456 | 1461 | | |
| 1462 | + | |
| 1463 | + | |
| 1464 | + | |
| 1465 | + | |
| 1466 | + | |
1457 | 1467 | | |
1458 | 1468 | | |
1459 | 1469 | | |
| |||
1636 | 1646 | | |
1637 | 1647 | | |
1638 | 1648 | | |
| 1649 | + | |
1639 | 1650 | | |
1640 | 1651 | | |
1641 | 1652 | | |
| |||
1657 | 1668 | | |
1658 | 1669 | | |
1659 | 1670 | | |
| 1671 | + | |
1660 | 1672 | | |
1661 | 1673 | | |
1662 | 1674 | | |
1663 | | - | |
| 1675 | + | |
| 1676 | + | |
1664 | 1677 | | |
| 1678 | + | |
1665 | 1679 | | |
1666 | 1680 | | |
1667 | 1681 | | |
1668 | | - | |
1669 | | - | |
1670 | 1682 | | |
1671 | 1683 | | |
1672 | 1684 | | |
| |||
0 commit comments