LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook
User Name
Password
Linux - Laptop and Netbook Having a problem installing or configuring Linux on your laptop? Need help running Linux on your netbook? This forum is for you. This forum is for any topics relating to Linux and either traditional laptops or netbooks (such as the Asus EEE PC, Everex CloudBook or MSI Wind).

Notices


Reply
  Search this Thread
Old 09-23-2012, 08:41 AM   #1
buccaneere
Member
 
Registered: Nov 2007
Posts: 213

Rep: Reputation: 16
New hardware; W7 shrinkage, swap necessity Q's...


2 Q's here, with new laptop:

1) How much will W7 shrink?
2) With 8 G ramsticks, is swap space necessary? (if so, how much?)


I got a new Dell w/ W7, 8G ram and 1Tb hard drive.

W7 shrunk itself to about 485 G on the drive. I formatted the leftover, re-booted, and tried again to shrink it. It wasn't interested in shrinking further.

So now, load Linux on the free space, and try shrinking from Linux Live environment???

and...

With 8 G ram in the machine, is ANY swap space necessary? If so, how much?

Suggestion used to be swap = 2x ram, but is it different now?
 
Old 09-23-2012, 08:54 AM   #2
cascade9
Senior Member
 
Registered: Mar 2011
Location: Brisneyland
Distribution: Debian, aptosid
Posts: 3,753

Rep: Reputation: 935Reputation: 935Reputation: 935Reputation: 935Reputation: 935Reputation: 935Reputation: 935Reputation: 935
Windows will only shrink its installed partition to half the original size. There are ways around that, I dont know what would be more risky- using hacks to get around the shinking limit, or using a non-windows way to shrink the partition more.

Swap = 2x RAM is still Ok in some situations. You wont need 2x RAM swap size with 8GB iMO. You can possibly get away with no swap at all. If you want to suspend to disc, you will may need up to RAM size + a tiny bit more.

I wouldnt create a swap of more than 10GB for an 8GB RAM system, and in many cases I would go for a much smaller (2-6GB) swap partition.
 
Old 09-23-2012, 10:50 AM   #3
buccaneere
Member
 
Registered: Nov 2007
Posts: 213

Original Poster
Rep: Reputation: 16
Ah yes - cascade the hardware guru!

I expected 2G swapspace would suffice...

And W7 allocating itself half of my drivespace? Nothing like the gluttony for hardware of Windows... But why / how will it not reduce itself by half a second, and third time, etc.?
 
Old 09-23-2012, 12:26 PM   #4
NyteOwl
Member
 
Registered: Aug 2008
Location: Nova Scotia, Canada
Distribution: Slackware, OpenBSD, others periodically
Posts: 512

Rep: Reputation: 139Reputation: 139
Note: if you are doing programming or other activities that could potentially create a core dump then you will need a swap space at least twice the size of RAM. The reason is that when the kernel dumps the core memory it dumps all the memory, the relevant pointers and the debugging info to the swap space. In total this can be twice the size of the current memory (or more though rarely). If the swap file/partition is insufficient to hold it the kernel will not care or check but simply dump the data to disk, potentially overwriting the drive with the extra data. HDD space is relatively inexpensive in terms of resources so sacrificing a bit extra to swap should be a problem and can potentially prevent a larger one.

Last edited by NyteOwl; 09-23-2012 at 12:29 PM. Reason: fixed typos
 
Old 09-23-2012, 04:37 PM   #5
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,974

Rep: Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623
I almost never create swap partition but it depends on the services and amount of ram you could use. You can always consider a swap file or partition later if you see memory getting low. 8G is a lot for a desktop user and not much for a server.

I tend to suggest that you use windows to shrink windows. I guess you could run disk clean up and see how much you can get rid of. Look for older restore points if you want to live dangerously. Make a backup using windows 7 backup before you get too far along.
 
Old 09-23-2012, 05:07 PM   #6
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,841

Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
While windows disk management software is good it will only shrink upto half of original size, it doesn't allocate 50% of drive. As long as windows is operating as it should not requiring chkdsk you can shrink it quite a bit more with gparted-live-cd.
Gparted can shrink it to it's smallest size & leaving a small reserve of space for wins7.
How much data does wins C:\ drive hold & how much reserve are you trying to have?
 
Old 09-24-2012, 02:54 AM   #7
cascade9
Senior Member
 
Registered: Mar 2011
Location: Brisneyland
Distribution: Debian, aptosid
Posts: 3,753

Rep: Reputation: 935Reputation: 935Reputation: 935Reputation: 935Reputation: 935Reputation: 935Reputation: 935Reputation: 935
Quote:
Originally Posted by buccaneere View Post
Ah yes - cascade the hardware guru!
LOL, thanks. Dotn let TobiSGD see that ...honestly, he probably knows at least as much about hardware as I do.

Quote:
Originally Posted by buccaneere View Post
And W7 allocating itself half of my drivespace? Nothing like the gluttony for hardware of Windows... But why / how will it not reduce itself by half a second, and third time, etc.?
Because windows keeps a reccord of how big the original install partition was.

Quote:
Originally Posted by buccaneere View Post
I expected 2G swapspace would suffice...
In a lot of cases, yes. But not always.

Quote:
Originally Posted by NyteOwl View Post
Note: if you are doing programming or other activities that could potentially create a core dump then you will need a swap space at least twice the size of RAM. The reason is that when the kernel dumps the core memory it dumps all the memory, the relevant pointers and the debugging info to the swap space. In total this can be twice the size of the current memory (or more though rarely). If the swap file/partition is insufficient to hold it the kernel will not care or check but simply dump the data to disk, potentially overwriting the drive with the extra data. HDD space is relatively inexpensive in terms of resources so sacrificing a bit extra to swap should be a problem and can potentially prevent a larger one.
I thought that even if you did a full user mode core dump, it would bigger than your used RAM but not up to twice as big. I really dont know, I'm not a programmer and I dont recall ever getting a core dump under linux at all. Thanks for the info, I'll try to remember that.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Necessity of driver when communicating with custom hardware on parallel port Summer_Penguin Linux - Hardware 3 04-02-2012 12:39 AM
LXer: Linux Netbook Sales: Suffering From More Market Shrinkage? LXer Syndicated Linux News 0 03-08-2012 01:20 PM
Screen shrinkage during Facebook games. Older linux and Firefox suzhuz10 Linux - Newbie 2 07-27-2011 09:06 PM
Mozilla apps font shrinkage - unasked for :-( PaulFC5 Fedora 4 04-02-2008 06:56 PM
updating by way of hardware swap jbeiter Linux - Enterprise 2 11-04-2004 09:41 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook

All times are GMT -5. The time now is 02:45 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration