ALT Linux Bugzilla
– Attachment 5177 Details for
Bug 25855
Kernel panic 1-2 раза в неделю
New bug
|
Search
|
[?]
|
Help
Register
|
Log In
[x]
|
Forgot Password
Login:
[x]
|
EN
|
RU
vzswap script by Denis Kuznetsov
vzswap (text/plain), 478 bytes, created by
Michael Shigorin
on 2011-10-28 11:03:59 MSK
(
hide
)
Description:
vzswap script by Denis Kuznetsov
Filename:
MIME Type:
Creator:
Michael Shigorin
Created:
2011-10-28 11:03:59 MSK
Size:
478 bytes
patch
obsolete
>#!/bin/sh > >VEID="$1" >RAM="$2" >SWAP="$3" >if [ -z "$VEID" -o -z "$RAM" -o -z "$SWAP" ] >then > echo Run: $0 VEID RAM SWAP > exit 1 >fi > >MEMTOTAL=$(awk '/^MemTotal:/ { print $2; }' /proc/bc/0/meminfo ) >PHYSPAGES=$RAM > >echo vzctl set $VEID --save --physpages ${RAM}M --swappages ${SWAP}M \\ >echo " --privvmpages $((MEMTOTAL*5/10))K:$((MEMTOTAL*6/10))K \\" >echo " --kmemsize $(((${RAM}*9)/20))M:$((${RAM}/2))M \\" >echo " --dcachesize $((${RAM}/4))M --lockedpages $((${RAM}/2))M"
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 25855
: 5177