Closed GoogleCodeExporter closed 9 years ago
compcache-0.6.2 allows initializing the first device (/dev/ramzswap0) without
using
rzscontrol (see Issue #50) by accepting disksize_kb, memlimit_kb, backing_swap
as
module parameters. This is exactly what your script is doing:
> insmod ramzswap.ko num_devices=1 disksize_kb=$RAMDISKSIZE
It will create 1 device *and* initialize it with given disksize. This is
similar to
example2 show at CompilingAndUsingNew page. Note that compcache-0.6 would
simply
ignore this additional disksize_kb parameter.
> rzscontrol /dev/ramzswap0 $RZSCONTROL_ARGS --init
This is redundant since the device is already initialized. However, rzscontrol
utility is needed to check stats, reset or reconfigure device. It is also a
must if
you want to use more than one ramzswap device (see Scalability page). Note that
compcache-0.6 would have ignored disksize_kb module parameter in previous step
and
rzscontrol would now initialize /dev/ramzswap0 with defaults (disksize equal to
25%
of RAM).
----
Ability to initialize without a separate tool (rzscontrol) is desirable mainly
for
embedded devices where insmod and swapon are part of busybox itself.
Original comment by nitingupta910@gmail.com
on 29 Jan 2010 at 2:06
Original comment by nitingupta910@gmail.com
on 29 Jan 2010 at 3:28
I see. It seems I didn't read readme and wiki properly... thanks
Original comment by tibor...@gmail.com
on 29 Jan 2010 at 9:28
Original issue reported on code.google.com by
tibor...@gmail.com
on 28 Jan 2010 at 10:30