How to find the number of physical CPUs in Linux

With multicore CPUs it’s easy for newbies to get confused when faced with questions like;

1. How many physical CPUs does the server have?

2. How many cores on each CPU? Duo/Quad

In Linux it’s actually quite easy to get this info.

You could go through the /var/log/dmesg file or the /proc/cpuinfo file. For this tutorial we’ll look at the /proc/cpuinfo file.

Physical CPU count?

Run “cat /proc/cpuinfo | grep “physical id” | sort | uniq | wc -l”.

[root@bender ~]# cat /proc/cpuinfo | grep “physical id” | sort | uniq | wc -l
2

How many cores?

Runcat /proc/cpuinfo | grep “cpu cores” | uniq”.

[root@kmigb000 ~]# cat /proc/cpuinfo | grep “cpu cores” | uniq
cpu cores       : 2

2 mean that each physical CPU has 2 cores on it. If cpu cores was 1 then the CPU’s single core.

How many virtual processors?

Run “cat /proc/cpuinfo | grep “^processor””

[root@bender ~]# cat /proc/cpuinfo | grep “^processor”
processor       : 0
processor       : 1
processor       : 2
processor       : 3

That’s about right, 2 physical CPUs x 2 cores each = 4 virtual processeors.

However, it’s a bit different for HT (Hyper-Threading). If you get cpu core = 1 but the virtual processors = 2 then the CPU’s running HT. HT will only work with the SMP kernel.

Google’s got a new favicon

Google’s rolled out a new favicon. You like it?

google-favicon

It’s basicly a white “g” within a google colored canvas. Standing out from the crowd is the idea behind the white “g”.

The new design was inspired by user submissions, same as their previous favicon release back in June. The winning design this time came from André Resende, a computer science undergraduate student at the University of Campinas in Brazil.

favicon_andre

A quick look at Google’s favicon history.

google-favicon-jan-2009

Source: GoogleSystem | Abinesh | GoogleBlog

WordPress founder Matt Mullenweg turns 25

matt-mullenweg-turns-25

For those who don’t know, Matt Mullenweg is the guy behindAutomattic. The company behind the world’s most popular publishing platform WordPress (6 years old) and it’s accompanying services. Askimet, Gravatar, bbPress, IntenseDebate, BuddyPress and WordPress.com the free WordPress hosting service.

Today, Matt is amongst The 25 Most Influential People on the Web and 30 under 30 America’s Coolest Young Entrepreneurs . At only 25 Matt has managed to accomplish so much and there is still a long way to go.

Great stuff Matt and enjoy your 25th!

Souurce: Matt Mullenweg

Facebook hits 150 million users

This just in, Facebook has reached 150 million users world wide.

About 50% of it’s users log in everyday. Facebook’s users today range from students right up to grandparents, this is no surprise to me as everyone in my home has a Facebook account including my Dad who’s 63 this year. Facebook now covers over 170 countries in 35 different languages, anyone from anywhere on the globe can get a piece of Facebook in their own language.

There’s hardly anyone today who has not heard of Facebook. To some social networks seem overwhelming with the mountains of data being made available to them but not me, to me data drives our daily lives. With all the new web 2.0 services today plugging into Facebook, there is so much information waiting to be picked, and when you have great mediums like Facebook to simplify the process why not endorse it.

I don’t log in everyday but Facebook is quite important to me nowadays. I use it to keep in touch with friends and family, make business deals, follow interest groups, organize events and the list keeps growing.

If you’re not on Facebook the least you could do is take it for a spin. BEWARE!! IT’S HIGHLY ADDICTIVE 😀

Source: Facebook

Hindu festival dates for 2009

Here’s a list of Hindu festivals for 2009 and their respective dates.

January 2009

Vaikunta Ekadasi – 7th January, 2009 Wednesday

Makar Sankranti – 14th January, 2009 Wednesday

Pongal – 14th January, 2009 Wednesday, 11.51am

Vasant Panchami – Saraswati Puja – 31st January, 2009 Saturday

February 2009

Thai Pusam – February 8, 2009 Sunday

Shivratri – 23rd February, 2009 Monday

March 2009

Holi – March 10th, 2009 Tuesday

Ugadi (New Year in Karnataka and Andhra Pradesh) – March 27th, 2009 Friday

Gudi Padva – March 27th, 2009 Friday

April 2009

Ram Navami – 3rd April, 2009 Friday

Hanuman Jayanti – 10th April, 2009 Driday

Chithirai 1 (Tamil New Year) – 14th April, 2009 Tuesday

Vishu (Kerala) – 14th April, 2009 Tuesday

New Year in Bengal and Assam – 15th April, 2009 Wednesday

Akshaya Tritiya – 27th April, 2009 Monday

May 2009

Narasimha Jayanti – 8th May, 2009 Friday

June 2009

Puri Rath Yatra – 24th June, 2009 Wednesday

July 2009

Vyas Purnima, Guru Purnima – 7th July, 2009 Tuesday

August 2009

Raksha Bandan – 5th August, 2009 Wednesday

Sri Krishna Janmashtami – 14th August, 2009 Friday

Ganesh Chaturthi – 23rd August, 2009 Sunday

September 2009

Thiru Onam – 2nd September, 2009 Wednesday

Navratri Begins – 19th September, 2009 Saturday

Durga Ashtami – 26th September, 2009 Saturday

Maha Navami – 27th September, 2009 Sunday

Vijaya Dashami – Dussehra – 28th September, 2009 Monday

October 2009

Karva Chouth – 7th October, 2009 Wednesday

Deepavali – Diwali – 17th October, 2009 Saturday

Annakut – Gujarati New Year – 18th October, 2009 Sunday

Chhat Puja – 24th October, 2009 and 25th Saturday & Sunday

Tulsi Vivah – 30th October, 2009 Friday

November 2009

Sabarimala Mandala Kalam begins – 16th November, 2009 Monday

Gita Jayanti – 28th November, 2009 Saturday

December 2009

Vaikunta Ekadasi – 28th December, 2009 Monday

If you find a date to be wrong or if I missed out something please free to drop me a comment and I’ll update the post.

© 2008-2012 The Danesh Project
Powered by Wordpress and made by Guerrilla. Hosted at ServerFreak