LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 08-03-2011, 04:01 AM   #31
TigerLinux
Senior Member
 
Registered: Sep 2005
Location: Kuala Lumpur, Malaysia
Distribution: Ubuntu 11.04
Posts: 1,731

Rep: Reputation: 30

Quote:
Originally Posted by cascade9 View Post
Chances are no, you wont be able to use the nVidia GPU at all. It depends on the model laptop you have.
if i play 3D games, maybe the nvidia will be used?
 
Old 08-03-2011, 06:46 AM   #32
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 TigerLinux View Post
if i play 3D games, maybe the nvidia will be used?
No, it wont unless one of the ways to force the nVidia GPU work.
 
Old 08-03-2011, 09:13 AM   #33
TigerLinux
Senior Member
 
Registered: Sep 2005
Location: Kuala Lumpur, Malaysia
Distribution: Ubuntu 11.04
Posts: 1,731

Rep: Reputation: 30
in this case i wasted my money???
 
Old 08-03-2011, 09:16 AM   #34
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,691
Blog Entries: 4

Rep: Reputation: 3947Reputation: 3947Reputation: 3947Reputation: 3947Reputation: 3947Reputation: 3947Reputation: 3947Reputation: 3947Reputation: 3947Reputation: 3947Reputation: 3947
Quote:
Originally Posted by TigerLinux View Post
in this case i wasted my money???
Presumably you intend to keep the computer for a while?
 
Old 08-03-2011, 09:28 AM   #35
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 TigerLinux View Post
in this case i wasted my money???
Probably.

*thinks*

Yes.
 
Old 08-03-2011, 10:06 AM   #36
TigerLinux
Senior Member
 
Registered: Sep 2005
Location: Kuala Lumpur, Malaysia
Distribution: Ubuntu 11.04
Posts: 1,731

Rep: Reputation: 30
i am using windows 7 ultimate 64bit,
it will not use nvidia?
 
Old 08-03-2011, 10:17 AM   #37
cascade9
Senior Member
 
Registered: Mar 2011
Location: Brisneyland
Distribution: Debian, aptosid
Posts: 3,753

Rep: Reputation: 935Reputation: 935Reputation: 935Reputation: 935Reputation: 935Reputation: 935Reputation: 935Reputation: 935
Yeah, windows 7 will use optimus. Well, most versions will anyway, 'windows 7 starter' will not use optimus (I'm unsure about win7 home basic and optimus)

That doesnt make it any better for using linux though.
 
Old 08-03-2011, 10:32 AM   #38
TigerLinux
Senior Member
 
Registered: Sep 2005
Location: Kuala Lumpur, Malaysia
Distribution: Ubuntu 11.04
Posts: 1,731

Rep: Reputation: 30
So, only linux has problem of using optimus?
I believe future version of linux distro will consider using optimus. Maybe?
 
Old 08-04-2011, 02:09 AM   #39
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 TigerLinux View Post
So, only linux has problem of using optimus?
I believe future version of linux distro will consider using optimus. Maybe?
Not just linux has problems with optimus, all the open source and unix like OSes have the same problem. Windows vista and earlier have no optimus suport, and I'm unsure about MacOSX.

nVidia has no plans to support optimus with linux. As usual, its all 'up to the community'.

If nVidia supported optimus with linux, it would be working (or very close to working) now. Since nVidia wont support it, if the communtiy cant make it work somehow then optimus will not work on linux.
 
Old 08-04-2011, 04:56 AM   #40
TigerLinux
Senior Member
 
Registered: Sep 2005
Location: Kuala Lumpur, Malaysia
Distribution: Ubuntu 11.04
Posts: 1,731

Rep: Reputation: 30
in this case it is better to buy ATI Radeon VGA-notebook.
 
Old 08-06-2011, 01:33 PM   #41
ThomasLMcLean
Member
 
Registered: Apr 2011
Location: Silver City, NM
Distribution: Linux Mint Debian Edition
Posts: 107

Rep: Reputation: 9
Swap and System Configuration

In a system using an i3-2100 CPU and an H67 chipset there is a possibility of 16 GB of RAM (2X8 GB). I plan on a minimum of 4 GB of RAM (2x2 GB)

The system also has an SSD for the OS and application software. With an linux OS (Say Shareware 64 bit) Swap space along with areas for other software is designated when the drive is partitioned. How do I assign swap to RAM memory? How much should I add to the 4 GB already planed, and is this a faster system then putting swap on the SSD?

I assume this is an appropriate question for this thread, and I thank all for there response.

T L
On the Wet Coast
 
Old 08-07-2011, 05:51 AM   #42
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 TigerLinux View Post
in this case it is better to buy ATI Radeon VGA-notebook.
Probably, though switchable graphics has its own porblems. IMO you are best off getting a laptop with 1 video card only.

Quote:
Originally Posted by ThomasLMcLean View Post
In a system using an i3-2100 CPU and an H67 chipset there is a possibility of 16 GB of RAM (2X8 GB). I plan on a minimum of 4 GB of RAM (2x2 GB)

The system also has an SSD for the OS and application software. With an linux OS (Say Shareware 64 bit) Swap space along with areas for other software is designated when the drive is partitioned. How do I assign swap to RAM memory? How much should I add to the 4 GB already planed, and is this a faster system then putting swap on the SSD?

I assume this is an appropriate question for this thread, and I thank all for there response.

T L
On the Wet Coast
I would have started a new thread over posting in a thread made for a very different topic.

4GB is the max I would put into a i3. i3s are just dual core, anything task or set of tasks that would use more than 4GB would be better with a few more cores, and faster cores or more cache.

I think you mean 'slackware', not 'shareware'.

You dont need to do anything as far as swap is concerned. The OS knows about it and will use it.

Swap should be a bit bigger than RAM size, if you want to be able to suspend/hibernate with all that RAM in use. If you dont use suspend/hibernate and never use swap, then you can actually get away with no swap at all.

Running swap on a SSD is possible, but I wouldnt do it myself unless it was the only drive (and in that case I personally would just have no swap partition).
 
Old 08-07-2011, 06:32 AM   #43
johnsfine
LQ Guru
 
Registered: Dec 2007
Distribution: Centos
Posts: 5,286

Rep: Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197
Quote:
Originally Posted by ThomasLMcLean View Post
I assume this is an appropriate question for this thread
Certainly not. But since you already got one answer, I don't think another adds to the harm. Next time start a new thread for a new topic.

Quote:
4 GB of RAM (2x2 GB)

The system also has an SSD for the OS and application software.
...
How do I assign swap to RAM memory?
Your question was very unclear.

I think you are asking about a system with no hard drive, just SSD. Is that correct?

I think you are asking about using some of your ram as swap. That is almost certainly a bad idea.

With 4GB of ram and no hard drive (just SSD) the normal (and almost certainly correct) choice would be to have no swap space.

Quote:
How much should I add to the 4 GB already planed, and is this a faster system then putting swap on the SSD?
I don't know how you intend to use the system, so I can't guess whether 4GB with no swap is enough.

If 4GB with no swap is too slow (or fails entirely because you run something too big) having swap in SSD would be a very poor approach. Having more ram would be appropriate, but you would just use the additional ram as ram, not as swap.

Under memory pressure, Linux removes pages from ram.

It first removes read only pages that haven't been used recently (typically sections of programs and shared libraries). Those are not written to swap when removed. They are simply dropped from ram. Later when/if those pages are needed again, they are reread from the original media.

If all read only pages are recently accessed and if swap space is available, Linux will copy "anonymous" pages to swap. With a hard drive, it costs twice as much (write and read back later) to drop an anonymous page vs. a read only page (just read back later). So Linux only drops anonymous pages when they are much less recently used than read only pages. With SSD, a write costs much more than a read, so the relative cost of dropping anonymous pages is much more than the usual two to one. In most modern systems all your anonymous pages could stay in ram at the cost of rereading the read only pages more often. With no hard drive, that is usually the best way to manage the resources.

Last edited by johnsfine; 08-07-2011 at 06:44 AM.
 
Old 08-07-2011, 04:32 PM   #44
ThomasLMcLean
Member
 
Registered: Apr 2011
Location: Silver City, NM
Distribution: Linux Mint Debian Edition
Posts: 107

Rep: Reputation: 9
Quote:
Originally Posted by the_gripmaster View Post
The max amount of addressable memory for a 32 bit OS is 4GB. Does this 4GB also includes the swap space I might have allocated?

Lets say, I am running a 32bit version of Linux on a machine with 4GB of RAM. And I allocated another 4GB in swap. Can the OS use all that is available from the RAM and AS WELL AS the swap?
Thank you for the thoughtful and through answers, they are helpful to my understanding the mechanics of software.

Please excuse my apparent thread steeling. However, in my limited understanding of the subject, I did not see that the second part of the original question was addressed. From the way it seems to be written, the_gripmaster (The original post)had or was planning a second 4 GB of RAM as designated swap. I did not understand how this was possible. I assume from the response that it is not possible, and that the 4 GB of RAM will be used as RAM with a 64 bit OS. A additional 4 GB if not RAM will be used as swap if designated for this use, and this is better if it is not from an SSD, and may not even be necessary, depending on the applications being run.

T L
on the Wet Coast
80 Deg. and Full Sun
 
Old 08-07-2011, 06:53 PM   #45
johnsfine
LQ Guru
 
Registered: Dec 2007
Distribution: Centos
Posts: 5,286

Rep: Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197
Quote:
Originally Posted by ThomasLMcLean View Post
Please excuse my apparent thread steeling.
Now I see the connection between your misunderstanding of the initial question and your follow-up question, so it wouldn't be clear to you that you were jumping to a new topic. Obviously we don't demand you start a new thread when you don't know you're changing the topic.

Quote:
Originally Posted by the_gripmaster View Post
a 32bit version of Linux on a machine with 4GB of RAM. And I allocated another 4GB in swap.
the_gripmaster meant 4GB of ram combined with 4GB swap space on a hard drive, not 4GB of swap in ram. The original question was whether the total of ram plus swap was subject to some 4GB limit in 32 bit. I thought that was clearly answered "no". Even without PAE, 32 bit Linux can use 3 point something GB of ram plus 4GB of swap. No single process could use over 3GB, but a combination of processes could have anonymous memory filling all the 4GB of swap plus most of the 3 point something GB of ram. (Counting non anonymous memory, multiple processes on that system could be using far more than the total 8GB of "memory").

Quote:
However, in my limited understanding of the subject, I did not see that the second part of the original question was addressed.
Have I cleared that up? Or you still need clarification?

Quote:
From the way it seems to be written, the_gripmaster (The original post)had or was planning a second 4 GB of RAM as designated swap.
That is a rather strained misreading of the post. Anyway, that is not what it said.

Quote:
I did not understand how this was possible. I assume from the response that it is not possible
I don't think any response implied using extra ram as swap is not possible. In fact, it is possible. It is generally a terrible idea, but it is still possible to do.

Having swap on SSD is another generally bad idea. If you don't have a hard drive, having no swap is likely better than having swap in SSD or ram.

Whether you are talking about a 32 bit OS or a 64 bit OS, whether you are talking about 4GB total ram or 8GB total ram, the generally best use of all your ram is as ordinary ram.

I'm sure some expert could point out some obscure situation in which swap on SSD or swap in ram is a good idea. Linux is flexible enough to be fit into some very unusual situations. But swap on SSD or ram is further from an ordinary system than it may appear. An ordinary system without a hard drive should not have swap.

Last edited by johnsfine; 08-07-2011 at 07:01 PM.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Best way to pack a folder >8-12 GB ? (you certainly know > limit of 4GB) frenchn00b Linux - General 3 12-29-2008 06:20 PM
64-bit Linux virtual memory limit? wmnwmn Linux - General 1 02-01-2008 10:43 AM
4GB on 32-bit Debian? sycamorex Debian 6 07-03-2007 11:52 AM
split utility in pipes: backup to FAT32 (4GB limit) Samsara Linux - Software 3 01-26-2007 11:25 PM
4GB RAM: 64-bit Opteron Problems deviance99 Linux - Hardware 6 06-22-2004 08:24 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 07:49 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