LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-23-2009, 11:05 PM   #1
trist007
Senior Member
 
Registered: May 2008
Distribution: Slackware
Posts: 1,052

Rep: Reputation: 70
Two questions that I had on my mind about linux...


1. I've been rebuilding my kernel and trying different options. I have a intel Q6700, which is obviously a quad core processor. It is my understanding that SMP which stands for Symmetric Multi-Processor is an option in the config of the kernel. So since I have a 1 single processor that is a quad core, I would be unable to benefit from that option. However, I get the weird feeling that even ppl with dual and quad cores select this option. I have selected it, and my computer seems to run quite nicely. So my question is, can quad or dual cores, even though they are only 1 processor, take advantage of the SMP kernel?

2. I don't completely understand when people say their ip range is
192.168.1.0/24. I know that 0/24 stands for 1-254 right? 255 would be reserved for broadcast. Could somebody explain this part better. I'm thinking it has something to do with 24 bits.
 
Old 03-23-2009, 11:19 PM   #2
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
On 2, your IP is a 32bit address, so /24 is equivalent to a netmask of 255.255.255.0

Hence, 192.168.1.0/24 represents the range 192.168.1.0-192.168.1.255, whereas 192.168.0.0/16 represents the range 192.168.0.0-192.168.255.255.

The /x represents the significant bits.
 
Old 03-23-2009, 11:21 PM   #3
jman82s
Member
 
Registered: Jul 2007
Location: Central Coast, California
Distribution: "distro-hopper"
Posts: 66

Rep: Reputation: 15
1. Modern consumer multicore chips [I]do[I] in fact take advantage of SMP!! Leave it on!

2. The /24 part of the ip address is what's called a 'netmask', which determines the ip range of a subnet. There's some somewhat complicated math involved--not bad once you do it a few times--that converts that 24 into octets, and is 'and'ed or 'or'ed, or both, can't remember, with the ip address. A subnet makes a network within a network.
 
Old 03-23-2009, 11:23 PM   #4
vindoan
LQ Newbie
 
Registered: Mar 2009
Posts: 23

Rep: Reputation: 17
A quad core is four processor core in one processor package. So your quad core will benefit from SMP.
 
Old 03-23-2009, 11:23 PM   #5
reptiler
Member
 
Registered: Mar 2009
Location: Hong Kong
Distribution: Fedora
Posts: 184

Rep: Reputation: 42
You need SMP-support to have all your cores working.
The MP in SMP may mean Multi-Processor, what else is a Multi-Core-CPU of not actually multiple CPUs glued together (and sharing cache instead of each having their own)?

I guess that for the OS it's no difference if you have a couple of different CPUs or just one CPU with multiple cores, thus: Yes, you benefit from the SMP-option, because otherwise you'll be only using one core.

Just try this:
1. cat /proc/cpuinfo | grep vendor_id | wc -l
2. Then build and boot a kernel without SMP-support.
3. Try #1 again.
 
Old 03-23-2009, 11:27 PM   #6
trist007
Senior Member
 
Registered: May 2008
Distribution: Slackware
Posts: 1,052

Original Poster
Rep: Reputation: 70
So in 192.168.1.0/24, the 192.168.1 are the network ID and the 0-255 would be the host ID, which consists of the network within the 192.168.1 network.

So in 192.168.0.0/16, the 192.168 are the network ID and the 0-255,0-255 would the host ID, network within the 192.168 network.

This about right?

So let's say there's a box running a IP of 192.168.1.12, he would not be able to communicate with a box running a IP of 192.168.0.12, because the first is on a 0/24 or 255.255.255.0 subnet while the latter is on a 0/16 or 255.255.0.0 subnet.

This about right?

Yeah
cat /proc/cpuinfo | grep vendor_id | wc -l gives me 4

Last edited by trist007; 03-23-2009 at 11:30 PM.
 
Old 03-23-2009, 11:41 PM   #7
reptiler
Member
 
Registered: Mar 2009
Location: Hong Kong
Distribution: Fedora
Posts: 184

Rep: Reputation: 42
Quote:
Originally Posted by trist007 View Post
Yeah
cat /proc/cpuinfo | grep vendor_id | wc -l gives me 4
And a kernel without SMP-support will give you 1.
 
Old 03-24-2009, 12:08 AM   #8
vindoan
LQ Newbie
 
Registered: Mar 2009
Posts: 23

Rep: Reputation: 17
Quote:
Originally Posted by trist007 View Post
So in 192.168.1.0/24, the 192.168.1 are the network ID and the 0-255 would be the host ID, which consists of the network within the 192.168.1 network.
192.168.1.0 is the network. There is also an IP address reserved for the broadcast, 192.168.1.255. You can assign IPs for hosts in the range, excluding the network and broadcast.

Quote:
Originally Posted by trist007 View Post
So in 192.168.0.0/16, the 192.168 are the network ID and the 0-255,0-255 would the host ID, network within the 192.168 network.

This about right?
In a 192.168.0.0/16 network you have 65534 usable IP's. Your first usable IP is 192.168.0.1 and your last usable IP is 192.168.255.254. The broadcast address is 192.168.255.255. Conventionally, people use 192.168.*.* address for private class C networks. Hence 192.168.0.0/16 is hardly ever seen.


Quote:
Originally Posted by trist007 View Post
So let's say there's a box running a IP of 192.168.1.12, he would not be able to communicate with a box running a IP of 192.168.0.12, because the first is on a 0/24 or 255.255.255.0 subnet while the latter is on a 0/16 or 255.255.0.0 subnet.

This about right?
In theory the two boxes should be able to communicate. 192.168.1.0/24 is a what you call a VLAN of 192.168.0.0/16. Though you might have to put a route in there.

Last edited by vindoan; 03-24-2009 at 12:12 AM.
 
  


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
I you all don't mind I think I'll climb aboard for a little Linux OldMarine LinuxQuestions.org Member Intro 2 03-28-2007 10:22 AM
If you all don't mind I think I'll climb aboard for a little Linux OldMarine LinuxQuestions.org Member Intro 1 03-28-2007 06:40 AM
What are the most common new Linux users questions? Have a mind to write a book:) kornerr Linux - General 33 07-31-2005 07:42 AM
linux partitioning BLOWING MY MIND! jagibbs Linux - Newbie 9 04-26-2005 03:42 AM
The age old Linux vs M$- for those that cant make up there mind... prodigius Linux - General 20 03-21-2002 07:08 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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