Slashdot Mirror


Is Swap Necessary?

johnnyb writes "Kernel Trap has a great conversation on swap, whether it's necessary, why swapless systems might seem faster, and an overall discussion of swap issues in modern computing. This is often an issue for system administrators, and this is a great set of posts about the issue."

1 of 581 comments (clear)

  1. Re:The Kernel Can Take a Hint by Spy+Hunter · · Score: 0, Troll

    Requiring extra linux-specific code just to get decent performance is dumb. Sounds to me like the kernel needs a simple profiler to assess the way files are being accessed. Large file + sequential access = read-ahead w/ small cache; large file + random access = large cache w/ recent pieces; small files + repeated access = large cache holding complete files; etc. Would this not solve the problem for everyone?

    --
    main(c,r){for(r=32;r;) printf(++c>31?c=!r--,"\n":c<r?" ":~c&r?" `":" #");}