Re: Swapping to a large sparse file

2015-01-17 Thread Chris Murphy
On Sat, Jan 17, 2015 at 8:05 PM, jd1008 wrote: > Yes, I knew about what gparted can do. I had tried it > on a 1tb drive, and it still took at least 2 hours. > Maybe there was an issue with the sata internal bus??? We'd need dmesg to have any idea about that. Anytime I've done only an fs shrink o

Re: Swapping to a large sparse file

2015-01-17 Thread jd1008
On 01/17/2015 07:14 PM, John Mellor wrote: You do not need to mess it up, unless you are actually using all 2TB of the disk. Use gparted to shrink the existing partitions as required. On Sat, Jan 17, 2015 at 8:11 PM, jd1008 > wrote: On 01/17/2015 06:02 PM, Chri

Re: Swapping to a large sparse file

2015-01-17 Thread John Mellor
You do not need to mess it up, unless you are actually using all 2TB of the disk. Use gparted to shrink the existing partitions as required. On Sat, Jan 17, 2015 at 8:11 PM, jd1008 wrote: > > On 01/17/2015 06:02 PM, Chris Murphy wrote: > >> https://wiki.archlinux.org/index.php/Uswsusp >> >> It

Re: Swapping to a large sparse file

2015-01-17 Thread jd1008
On 01/17/2015 06:28 PM, Chris Murphy wrote: On Sat, Jan 17, 2015 at 6:11 PM, jd1008 wrote: The nand flash sinks completely into the multi-flash reader/writer, nothing to protrude. So I think this is a good solution for my situation. Seems reasonable I guess. I really do not want to back up

Re: Swapping to a large sparse file

2015-01-17 Thread Chris Murphy
On Sat, Jan 17, 2015 at 6:11 PM, jd1008 wrote: > The nand flash sinks completely into the multi-flash > reader/writer, nothing to protrude. So I think this > is a good solution for my situation. Seems reasonable I guess. > I really do not > want to back up 2TB drive, repartition it to create >

Re: Swapping to a large sparse file

2015-01-17 Thread jd1008
On 01/17/2015 06:02 PM, Chris Murphy wrote: https://wiki.archlinux.org/index.php/Uswsusp It looks like it support swapfiles. I still don't think a sparse file backing a loop device as a swap device will work for suspend to disk, but it may just be a matter of creativity. If this is a laptop I t

Re: Swapping to a large sparse file

2015-01-17 Thread Chris Murphy
https://wiki.archlinux.org/index.php/Uswsusp It looks like it support swapfiles. I still don't think a sparse file backing a loop device as a swap device will work for suspend to disk, but it may just be a matter of creativity. If this is a laptop I think you're better off with swap on the interna

Re: Swapping to a large sparse file

2015-01-17 Thread jd1008
On 01/17/2015 03:52 PM, Chris Murphy wrote: On Fri, Jan 16, 2015 at 7:22 PM, jd1008 wrote: On 01/16/2015 07:11 PM, John Morris wrote: On Fri, 2015-01-16 at 14:26 -0700, jd1008 wrote: In older "traditional" practices, swap space was normally about twice the ram size. Today, with some systems

Re: Swapping to a large sparse file

2015-01-17 Thread Chris Murphy
On Fri, Jan 16, 2015 at 7:22 PM, jd1008 wrote: > > On 01/16/2015 07:11 PM, John Morris wrote: >> >> On Fri, 2015-01-16 at 14:26 -0700, jd1008 wrote: >> >>> In older "traditional" practices, swap space was normally >>> about twice the ram size. Today, with some systems having >>> 64 and even 128GB

Re: Swapping to a large sparse file

2015-01-16 Thread jd1008
On 01/16/2015 07:11 PM, John Morris wrote: On Fri, 2015-01-16 at 14:26 -0700, jd1008 wrote: In older "traditional" practices, swap space was normally about twice the ram size. Today, with some systems having 64 and even 128GB and even larger RAM, it becomes interesting how big swap space shoul

Re: Swapping to a large sparse file

2015-01-16 Thread John Morris
On Fri, 2015-01-16 at 14:26 -0700, jd1008 wrote: > In older "traditional" practices, swap space was normally > about twice the ram size. Today, with some systems having > 64 and even 128GB and even larger RAM, it becomes interesting > how big swap space should be. Where is the cutoff for performan

Re: Swapping to a large sparse file

2015-01-16 Thread John Morris
On Fri, 2015-01-16 at 13:08 -0700, jd1008 wrote: > Can it be done? > > So far, swapon says: > swapon: /var/swapfile: skipping - it appears to have holes. > ... > Maybe the devs can have a look and see if they can modify the swapper to > allow sparse swap files?? > There is a reason why it acts l

Re: Swapping to a large sparse file

2015-01-16 Thread jd1008
On 01/16/2015 01:57 PM, Chris Murphy wrote: On Fri, Jan 16, 2015 at 1:08 PM, jd1008 wrote: Can it be done? So far, swapon says: swapon: /var/swapfile: skipping - it appears to have holes. I was hoping that the kernel's swapper would allow the filesystem to allocate real blocks to the sparse

Re: Swapping to a large sparse file

2015-01-16 Thread Chris Murphy
On Fri, Jan 16, 2015 at 1:08 PM, jd1008 wrote: > Can it be done? > > So far, swapon says: > swapon: /var/swapfile: skipping - it appears to have holes. > > I was hoping that the kernel's swapper would allow the filesystem to > allocate > real blocks to the sparse file when they are needed rather t

Swapping to a large sparse file

2015-01-16 Thread jd1008
Can it be done? So far, swapon says: swapon: /var/swapfile: skipping - it appears to have holes. I was hoping that the kernel's swapper would allow the filesystem to allocate real blocks to the sparse file when they are needed rather than check up front to see if they already exist. Maybe the