[linux] Re: /proc/sys/kernel/random/pool_size vergroten

Folkert van Heusden folkert op vanheusden.com
Wo Sep 21 19:51:03 CEST 2005


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

> > > grobbebol:/proc/sys/kernel/random # cat read_wakeup_threshold
> > > 64
> > > grobbebol:/proc/sys/kernel/random # echo "128" > read_wakeup_threshold
> > > grobbebol:/proc/sys/kernel/random # cat read_wakeup_threshold
> > > 128
> > Wordt hier mijn 'glas' groter van?
> het was als voorbeeld dat je het groter kunt maken, al die params die in
> /proc/sys staan ongeveer.
> welke param je glas is, geen idee.

Het kan NIET.

- -r--r--r--  1 root root 0 Sep 21 19:46 boot_id
- -r--r--r--  1 root root 0 Sep 21 19:46 entropy_avail
- -r--r--r--  1 root root 0 Sep 21 19:46 poolsize
 ^  ^  ^
read-only
- -rw-r--r--  1 root root 0 Sep 21 19:46 read_wakeup_threshold
- -r--r--r--  1 root root 0 Sep 21 19:46 uuid
- -rw-r--r--  1 root root 0 Sep 21 19:46 write_wakeup_threshold
0 root op muur:/proc/sys/kernel/random$ cat poolsize
512
0 root op muur:/proc/sys/kernel/random$ echo 4096 > poolsize
bash: poolsize: Operation not permitted

Zie?
Alleen wat in de source harken helpt.
Deze regels in random.c tweaken:
#define DEFAULT_POOL_SIZE 512
#define SECONDARY_POOL_SIZE 128
#define BATCH_ENTROPY_SIZE 256

Ik zou de secondary pool size niet vergroten want als ik 't me goed
herinner is die 't performance gevoeligst.


Folkert van Heusden

- -- 
Try MultiTail! Multiple windows with logfiles, filtered with regular
expressions, colored output, etc. etc. www.vanheusden.com/multitail/
- ----------------------------------------------------------------------
Get your PGP/GPG key signed at www.biglumber.com!
- ----------------------------------------------------------------------
Phone: +31-6-41278122, PGP-key: 1F28D8AE, www.vanheusden.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)

iIMEARECAEMFAkMxnYU8Gmh0dHA6Ly93d3cudmFuaGV1c2Rlbi5jb20vZGF0YS1z
aWduaW5nLXdpdGgtcGdwLXBvbGljeS5odG1sAAoJEDAZDowfKNiuZZwAoJXUfSDd
imRWMr0tjrImTqcQXo6YAJ9DNc7QEYCw4ci+FnnpifqM++sNWA==
=W3nh
-----END PGP SIGNATURE-----



More information about the Linux mailing list