The Following User Says Thank You to peterleinchen For This Useful Post: | ||
![]() |
2012-07-13
, 22:45
|
|
Posts: 5,028 |
Thanked: 8,613 times |
Joined on Mar 2011
|
#92
|
The Following 4 Users Say Thank You to Estel For This Useful Post: | ||
![]() |
2012-07-13
, 22:45
|
Posts: 2,292 |
Thanked: 4,135 times |
Joined on Apr 2010
@ UK
|
#93
|
The Following User Says Thank You to sixwheeledbeast For This Useful Post: | ||
![]() |
2012-07-13
, 23:15
|
|
Posts: 4,118 |
Thanked: 8,901 times |
Joined on Aug 2010
@ Ruhrgebiet, Germany
|
#94
|
...
that having fragmented swap with lower priority (as when enabling 2nd swap with higher priority, without disabling 1st one), won't work well, as due to flawed implementation, there are still writes occurring on lower-priority (=fragmented) swap:
...
The Following User Says Thank You to peterleinchen For This Useful Post: | ||
![]() |
2012-07-14
, 13:26
|
Posts: 461 |
Thanked: 358 times |
Joined on May 2010
@ Bilbao (Basque Country [Spain])
|
#95
|
What do you think of my version of scripts on the wiki page?
Do they work for everyone?
The Following User Says Thank You to malkavian For This Useful Post: | ||
![]() |
2012-07-14
, 13:36
|
Posts: 461 |
Thanked: 358 times |
Joined on May 2010
@ Bilbao (Basque Country [Spain])
|
#96
|
The Following User Says Thank You to malkavian For This Useful Post: | ||
![]() |
2012-07-14
, 15:10
|
Posts: 2,292 |
Thanked: 4,135 times |
Joined on Apr 2010
@ UK
|
#97
|
Well, scripts look nice, but maybe "sudo" won't work for everybody. Mines must be used as root.
run-standalone.sh /home/user/.myscript/swapswitch.sh | sudo gainroot
The Following User Says Thank You to sixwheeledbeast For This Useful Post: | ||
![]() |
2012-07-15
, 08:20
|
Posts: 1,203 |
Thanked: 3,027 times |
Joined on Dec 2010
|
#98
|
![]() |
2012-07-15
, 20:28
|
|
Posts: 4,118 |
Thanked: 8,901 times |
Joined on Aug 2010
@ Ruhrgebiet, Germany
|
#99
|
Ummm, and I am thinking that there isn't a command to modify swap priorities without disabling and re-enabling it.
I am certain I have seen some script that is
"if not root - sudo me"
#!/bin/sh # executing a shell script given as parameter(s) as root if [ `id -u` != 0 ] ; then exec sudo gainroot <<EOF exec sh $0 $* EOF exit $? fi # own shell code from here
The Following 7 Users Say Thank You to peterleinchen For This Useful Post: | ||
![]() |
2012-07-16
, 17:40
|
Posts: 26 |
Thanked: 39 times |
Joined on Jul 2012
@ Bulgaria
|
#100
|
And do it with lesser nice, like
'nice -20 switchswap.sh'