Re: swap files
Cameron Simpson wrote: > On 17:49 15 Feb 2002, Hidong Kim <[EMAIL PROTECTED]> wrote: > | I have a machine with an 800 MB swap partition. To run a particular > | application, I need 1,000 MB swap. It appears that I can't create a > | swap file bigger than 4,880 kB. Is this correct? How would I get more > | swap space without having to re-partition? Thanks, > > Really? I routinely make bigger swap files than that. What file system are these swap files going into? He could be running into an issue regarding supported file size. Alan ___ Redhat-list mailing list [EMAIL PROTECTED] https://listman.redhat.com/mailman/listinfo/redhat-list
Re: swap files
*smacks himself* Oh.. THAT kind of file.. I should have remembered... I make partitions in files all the time (usually ext2 tho) :) -Statux ___ Redhat-list mailing list [EMAIL PROTECTED] https://listman.redhat.com/mailman/listinfo/redhat-list
Re: swap files
Thanks! I wasn't specifying the blocksize and count correctly. I have a 300 MB swap file now. Cheers, Hidong Ben Logan wrote: > > On Fri, Feb 15, 2002 at 05:49:49PM -0800, Hidong Kim wrote: > > Hi, > > > > I have a machine with an 800 MB swap partition. To run a particular > > application, I need 1,000 MB swap. It appears that I can't create a > > swap file bigger than 4,880 kB. Is this correct? How would I get more > > swap space without having to re-partition? Thanks, > > Do you mean 4,880 MB? (Since 4,880 Kb == 4.88 Mb, you've already got > more than that in your 800Mb swap partition.) I'm not sure what the > size limit on a swap file is--probably either 2 Gb or 4 Gb, but that's > just a guess. The limit used to be 127Mb, but that was changed a > while ago. I've successfully created a 200M swapfile. > > Regardless of that, you can create several swap files. For example, > to create two 1Gig swap files: > > # dd if=/dev/zero of=/swapfile1 bs=1M count=1k > # dd if=/dev/zero of=/swapfile2 bs=1M count=1k > > # mkswap /swapfile1 > # mkswap /swapfile2 > > # swapon /swapfile1 > # swapon /swapfile2 > > The "swapon" commands will allow you to start using the swap > immediately instead of having to reboot. The extra swap space should > show up in the output of the "free" command. > > Add a couple of lines to /etc/fstab so that the swap will be utilized > automatically next time you reboot, and you should be fine. > > If you still can't create 1G swapfiles for some reason, just try > dropping the size. For example, you could create four 500M swapfiles > to get the same 2G of swap. Just use bs=1M and count=500 in the dd > commands. > > Two things to note: it's really important to use /dev/zero as the > input file so that there are no "holes" in the swapfile; and be very > careful with the "mkswap" command--if you give it the wrong > device/filename, you could wipe stuff out. :) > > Hope this helps, > Ben > > -- > Ben Logan: ben at wblogan dot net > OpenPGP Key KeyID: A1ADD1F0 > > You are number 6! Who is number one? > > ___ > Redhat-list mailing list > [EMAIL PROTECTED] > https://listman.redhat.com/mailman/listinfo/redhat-list ___ Redhat-list mailing list [EMAIL PROTECTED] https://listman.redhat.com/mailman/listinfo/redhat-list
Re: swap files
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hidong Kim wrote: >I have a machine with an 800 MB swap partition. To run a particular >application, I need 1,000 MB swap. It appears that I can't create a >swap file bigger than 4,880 kB. Is this correct? How would I get more >swap space without having to re-partition? Thanks, Why do you think you have this limitation? What command did you issue, and what error did you receive? I'm sure there's not a 4MB limitation on swap files, but there are some other restrictions which might have tripped you up. Did you man mkswap? - -d - -- David Talkington PGP key: http://www.prairienet.org/~dtalk/0xCA4C11AD.pgp - -- http://setiathome.ssl.berkeley.edu/pale_blue_dot.html -BEGIN PGP SIGNATURE- Version: PGP 6.5.8 Comment: Made with pgp4pine 1.75-6 iQA/AwUBPG8UUL9BpdPKTBGtEQIgAwCgnp/oefeCJa1OC3vLlMIOREkId9QAoLcn nzlEQN16CfE6jx5487ampH+5 =up4d -END PGP SIGNATURE- ___ Redhat-list mailing list [EMAIL PROTECTED] https://listman.redhat.com/mailman/listinfo/redhat-list
Re: swap files
On Fri, 15 Feb 2002 17:49:49 -0800 Hidong Kim <[EMAIL PROTECTED]> claimed: > Hi, > > I have a machine with an 800 MB swap partition. To run a particular > application, I need 1,000 MB swap. It appears that I can't create a > swap file bigger than 4,880 kB. Is this correct? How would I get > more swap space without having to re-partition? Thanks, man mkswap It gives an example for creating a swapfile. You just need someplace to put it/them. Swapfiles have the added advantage of being something you can delete to free space up again on a partition, and being locatable anywhere, though booting might complain about not finding anything not on the root partition. -- An NT server can be run by any idiot, and usually is. ___ Redhat-list mailing list [EMAIL PROTECTED] https://listman.redhat.com/mailman/listinfo/redhat-list
Re: swap files
On 17:49 15 Feb 2002, Hidong Kim <[EMAIL PROTECTED]> wrote: | I have a machine with an 800 MB swap partition. To run a particular | application, I need 1,000 MB swap. It appears that I can't create a | swap file bigger than 4,880 kB. Is this correct? How would I get more | swap space without having to re-partition? Thanks, Really? I routinely make bigger swap files than that. -- Cameron Simpson, DoD#743[EMAIL PROTECTED]http://www.zip.com.au/~cs/ This is actually a good example of why I'm not writing in Hollywood. If I'd done the SPEED script, the bus would have tried some idiotic stunt, crashed, and crushed everyone aboard. The police would find no evidence of any bomb on board. Dennis Hopper would be fined $500 for making a threatening phone call to a gullible police officer, and walk home to make a better movie.- Tim_Mefford <[EMAIL PROTECTED]> ___ Redhat-list mailing list [EMAIL PROTECTED] https://listman.redhat.com/mailman/listinfo/redhat-list
Re: swap files
On Fri, Feb 15, 2002 at 05:49:49PM -0800, Hidong Kim wrote: > Hi, > > I have a machine with an 800 MB swap partition. To run a particular > application, I need 1,000 MB swap. It appears that I can't create a > swap file bigger than 4,880 kB. Is this correct? How would I get more > swap space without having to re-partition? Thanks, Do you mean 4,880 MB? (Since 4,880 Kb == 4.88 Mb, you've already got more than that in your 800Mb swap partition.) I'm not sure what the size limit on a swap file is--probably either 2 Gb or 4 Gb, but that's just a guess. The limit used to be 127Mb, but that was changed a while ago. I've successfully created a 200M swapfile. Regardless of that, you can create several swap files. For example, to create two 1Gig swap files: # dd if=/dev/zero of=/swapfile1 bs=1M count=1k # dd if=/dev/zero of=/swapfile2 bs=1M count=1k # mkswap /swapfile1 # mkswap /swapfile2 # swapon /swapfile1 # swapon /swapfile2 The "swapon" commands will allow you to start using the swap immediately instead of having to reboot. The extra swap space should show up in the output of the "free" command. Add a couple of lines to /etc/fstab so that the swap will be utilized automatically next time you reboot, and you should be fine. If you still can't create 1G swapfiles for some reason, just try dropping the size. For example, you could create four 500M swapfiles to get the same 2G of swap. Just use bs=1M and count=500 in the dd commands. Two things to note: it's really important to use /dev/zero as the input file so that there are no "holes" in the swapfile; and be very careful with the "mkswap" command--if you give it the wrong device/filename, you could wipe stuff out. :) Hope this helps, Ben -- Ben Logan: ben at wblogan dot net OpenPGP Key KeyID: A1ADD1F0 You are number 6! Who is number one? ___ Redhat-list mailing list [EMAIL PROTECTED] https://listman.redhat.com/mailman/listinfo/redhat-list
Re: swap files
You could try adding another hard drive. On Fri, 15 Feb 2002, Hidong Kim wrote: > Hi, > > I have a machine with an 800 MB swap partition. To run a particular > application, I need 1,000 MB swap. It appears that I can't create a > swap file bigger than 4,880 kB. Is this correct? How would I get more > swap space without having to re-partition? Thanks, > > > > Hidong > > > > ___ > Redhat-list mailing list > [EMAIL PROTECTED] > https://listman.redhat.com/mailman/listinfo/redhat-list > ___ Redhat-list mailing list [EMAIL PROTECTED] https://listman.redhat.com/mailman/listinfo/redhat-list
swap files
Hi, I have a machine with an 800 MB swap partition. To run a particular application, I need 1,000 MB swap. It appears that I can't create a swap file bigger than 4,880 kB. Is this correct? How would I get more swap space without having to re-partition? Thanks, Hidong ___ Redhat-list mailing list [EMAIL PROTECTED] https://listman.redhat.com/mailman/listinfo/redhat-list