search for: swapoff

Displaying 20 results from an estimated 72 matches for "swapoff".

2007 Sep 04
2
shrink LV with ext3 filesystem
Hi. I want to make a snapshot from a logical volume and noticed that there must be enough free disk space in the volume group. Actually there is no free disk space left. How do i shrink online /var without losing any data or restore from backup? I do not have physical access to the server. Specs: Dell PE SC1430 with a 5/i RAID Controller one RAID 1 array from the Dell RAID controller 2
2008 Feb 01
3
swapping on centos 5.1
...tem responsiveness is different between the two. I noticed that centos 5.1 seems to be swapping programs out of memory at times resulting in slowness (perceived by me). I played with swappiness (/proc/sys/vm/) setting to 10, then 1 then 0. Still resulted in the same perceived slowness. Today I did swapoff -a and now the system obviously does not swap anything out all all. I thought thats what swappiness of 0 would have done. Are others experiencing this also? The perceived slowness maks the older system with less RAM and slower CPU "seem" faster. Any suggestions on other things to try?...
2011 Jul 27
1
HOWTO install CentOS 6 on low memory computer or virtual machine (even 192MB RAM)
...# not reported in MemTotal by /proc/meminfo epsilon = 15360 # 15 MB return needed_ram < (iutil.memInstalled() + epsilon) This would get rid of artificial hard-coded memory requirement. 4. Edit a file /usr/lib/anaconda/storage/__init__.py - search for 4th occurrence of "swapoff" and modify a fragment of function "umountFilesystems" from: for device in devices: if not device.format.mountable and \ (device.format.type != "swap" or swapoff): continue to: for device in devices: if not (device.format.mounta...
2006 Jun 05
2
Swap
...oring that never shows all available memory used, what would happen if you just turned swap off, and let memory handle things? This machine here, has now crept up to using just under 400mb of swap, yet I've never seen total memory usage above about 1.4gb. I'm a bit leary of just "swapoff" while the machine is running the weather model, as I'd hate to crash things, but I'm just wondering if turning off swap (assuming the system is actually using the disks) would break things or in the best case, speed things up. -- Sam W.Drinkard -- sam at wa4phy.net http://wa4phy...
2015 Nov 12
1
Re: How to fix an incorrect storage pool?
On 12 Nov 2015 13:27, "Han Han" <hhan@redhat.com> wrote: > > It says that Logical volume centos_hyv2/swap in use. Maybe centos_hyv2/swap is mounted. So I think you should umount or > swapoff centos_hyv2/swap first, make sure it is not used by other process. Then try pool-destroy. > Yes, that's the system swap. That and home and root are all in the storage pool and are, of course, all in use and I can't run the machine without them being in use. Perhaps if I rm'd the sto...
2001 Nov 03
1
Patch for kernel 2.4.14pre7
...al-head.h patching file Documentation/Configure.help Hunk #1 succeeded at 12150 (offset 86 lines). vmscan.c.rej: *************** *** 115,120 **** set_page_dirty(page); goto drop_pte; } /* * Check PageDirty as well as pte_dirty: page may * have been brought back from swap by swapoff. --- 114,129 ---- set_page_dirty(page); goto drop_pte; } + + if (page->buffers) { + /* + * Anonymous buffercache page left behind by + * truncate. + */ + printk(__FUNCTION__ ": page has buffers!\n"); + goto preserve; + } + /* * Check PageDirty as w...
2005 May 10
3
live migration and swap space
I use live migration with xen (stable) domain on NFS root filesystem. I do not understand how to setup and migrating swap space in xen for live migration. two VBD as swap disk? Swap space on NFS?? Any help would be greatly appreciated, Thanks Daniele _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
2012 Feb 26
2
strange memory issues with CentOS 6.2 on VPS
...Size Used Priority /root/swap.img file 399992 0 -1 # free total used free shared buffers cached Mem: 503412 294192 209220 0 11740 99980 -/+ buffers/cache: 182472 320940 Swap: 399992 0 399992 # swapoff swap.img swapoff: swap.img: swapoff selhal: Nelze alokovat pam?? Any ideas what might cause this? The fact that I haven't noticed these issues before the migration are probably caused by a swap file - I've manually added it during a maintenance and forgot to remove it after that, but...
2015 Nov 12
2
How to fix an incorrect storage pool?
I've created my storage pool incorrectly. I'm using LVM and I have a volume group called vms-lvm. When I look at it in virt-manager I see that the volumes it contains are home, root and swap, so when I created the storage group in virt-manager I must have specified something incorrectly. Unfortunately I can't find a way to correct this. If I try to destroy (stop) the storage group I
2009 Jun 26
1
Determining if swap memory is turned off
In order to run some performance tests on optimization tools, I want to be able to avoid the use of swap memory. In *nix systems, at least Linux ones, I can issue a 'sudo swapoff -a' command and use just the RAM available. If I don't do this, at some point swap will be used, the disk goes ballistic and the machine is unresponsive because it is thrashing data to the swap. I suspect others have encountered this too. Clearly I'd rather fail out than get into t...
2007 Nov 09
1
CentOS 5: comment swap in fstab
I'm not sure what gave me this idea, but I decided to comment out the swap partition in /etc/fstab and reboot my laptop. I did not run swapoff directly at any time. I'm running more things now than I would ever dream of to hammer my 500MB of memory, but I still notice NO slowdown. This is the best desktop experience I've ever had for any OS on any hardware! Here's the first 12 lines in top (CPU) top - 22:57:28 up 2:06, 1...
2015 Jun 26
1
Re: [PATCH v3.1 7/9] New API: swap_set_uuid_random
...e string with the current command, > diff --git a/daemon/swap.c b/daemon/swap.c > index 26fe30d..923adb2 100644 > --- a/daemon/swap.c > +++ b/daemon/swap.c > @@ -34,6 +34,7 @@ GUESTFSD_EXT_CMD(str_mkswap, mkswap); > GUESTFSD_EXT_CMD(str_swapon, swapon); > GUESTFSD_EXT_CMD(str_swapoff, swapoff); > GUESTFSD_EXT_CMD(str_swaplabel, swaplabel); > +GUESTFSD_EXT_CMD(str_uuidgen, uuidgen); > > /* Confirmed this is true for Linux swap partitions from the Linux sources. */ > #define SWAP_LABEL_MAX 16 > @@ -255,3 +256,34 @@ swap_set_uuid (const char *device, const c...
2015 Jun 30
1
nut UPS kill inverter: offdelay ignored
...ng the root file system read only. In my configuration, however, the /usr and /root directories are on different partitions, so I added these commands after turning off swap and before unmounting the local file systems, like this: # rc.6 ... # Turn off swap: echo "Turning off swap." /sbin/swapoff -a /bin/sync # Turn off UPS's power if [ -x /usr/libexec/nut/nut_restart_udev ]; then ?. /usr/libexec/nut/nut_restart_udev fi if [ -x /usr/libexec/nut/nut_kill_inverter ]; then . /usr/libexec/nut/nut_kill_inverter fi echo "Unmounting local file systems." /bin/umount -v -a -t no,proc...
2010 Jul 21
0
[PATCH] RFC: Encrypted swap support
..."${crypttab}" ] || [ ! $(cat "${crypttab}") ]; } +&& return ${rc} + rc=0 + + while read label dev mapp cyph; do + if [ -n ${label} -a -n ${dev} -a -n ${mapp} -a -n ${cyph} ]; then + if grep -q "${dev}" /proc/swaps; then + swapoff ${dev} >/dev/null 2>&1 + rc=$? + [ ${rc} -ne 0 ] && { + log "swapoff failed for Un-encrypted ${dev}"; + continue; + } + fi + if [ ! -b ${mapp} ]; then +...
2015 Jun 26
0
[PATCH v3.1 7/9] New API: swap_set_uuid_random
...NB: you don't need to prefix the string with the current command, diff --git a/daemon/swap.c b/daemon/swap.c index 26fe30d..923adb2 100644 --- a/daemon/swap.c +++ b/daemon/swap.c @@ -34,6 +34,7 @@ GUESTFSD_EXT_CMD(str_mkswap, mkswap); GUESTFSD_EXT_CMD(str_swapon, swapon); GUESTFSD_EXT_CMD(str_swapoff, swapoff); GUESTFSD_EXT_CMD(str_swaplabel, swaplabel); +GUESTFSD_EXT_CMD(str_uuidgen, uuidgen); /* Confirmed this is true for Linux swap partitions from the Linux sources. */ #define SWAP_LABEL_MAX 16 @@ -255,3 +256,34 @@ swap_set_uuid (const char *device, const char *uuid) return 0; } +...
2015 Jun 30
0
[PATCH v4 4/7] uuid: use newly introduced swap_set_uuid
...command, * it is added automatically by the client-side RPC stubs. diff --git a/daemon/swap.c b/daemon/swap.c index 83f4d7c..26fe30d 100644 --- a/daemon/swap.c +++ b/daemon/swap.c @@ -33,6 +33,7 @@ GUESTFSD_EXT_CMD(str_mkswap, mkswap); GUESTFSD_EXT_CMD(str_swapon, swapon); GUESTFSD_EXT_CMD(str_swapoff, swapoff); +GUESTFSD_EXT_CMD(str_swaplabel, swaplabel); /* Confirmed this is true for Linux swap partitions from the Linux sources. */ #define SWAP_LABEL_MAX 16 @@ -239,3 +240,18 @@ do_swapoff_uuid (const char *uuid) { return swaponoff (str_swapoff, "-U", uuid); } + +int +swap_se...
2015 Nov 12
0
Re: How to fix an incorrect storage pool?
It says that Logical volume centos_hyv2/swap in use. Maybe centos_hyv2/swap is mounted. So I think you should umount or swapoff centos_hyv2/swap first, make sure it is not used by other process. Then try pool-destroy. ----- Original Message ----- From: "Phill Edwards" <philledwards@gmail.com> To: libvirt-users@redhat.com Sent: Wednesday, November 11, 2015 8:59:22 PM Subject: [libvirt-users] How to fix an in...
2007 Aug 17
1
swap partition and live migration.
when performing a live migration i know the contents of the ram is copied over two the new xen server, but how about the contents of the swap partition. currently I have the swap partition in a seperate loopback file from the root partition. if i want to do a live migration, do i have to give the new server access to the swap partition file along with the root partition file? of can i just
2004 Sep 28
1
cache flush command
is there a CLI command you can pass to a linux system(specifically CentOS 3) that will force it to flush the memory file cache and/or swap file without rebooting? -- My "Foundation" verse: Isa 54:17 No weapon that is formed against thee shall prosper; and every tongue that shall rise against thee in judgment thou shalt condemn. This is the heritage of the servants of the LORD,
2008 Nov 01
1
swap being used?
I have a machine with 64GB of memory in our lab. We have memory demanding processes and natually swap gets used. However when these processes are gone and the system is idle, we still see swap being used. Is this normal behavior? TIA