Archive for the ‘Knowledge’ Category

Determine x86-compatible Intel system is multi-processor, multi-core or supports hyperthreading

Friday, October 10th, 2008 |

หลายคนคงจะรู้จัก Hyperthreading (HT) หรือชื่ออีกชื่อหนึ่งคือ Symmetric Multi-Threading (SMT) กันเป็นอย่างดี ซึ่งเป็น feature หนึ่งของ CPU intel ตระกูล x86 มีอยู่ใน cpu รุ่นเก่าๆอย่าง Pentium4, Xeon processors บางรุ่น และยังมี CPU ที่มีรหัส codename ว่า “Nehalem” ก็มี Hyperthreading (HT) แต่ CPU รุ่นปัจจุบันนี้ที่มีการผลิตแบบ Core microarchitecture เช่น Core2Duo, Core2Quad ไม่ได้มี Hyperthreading (HT) แล้วเราจะทราบได้อย่างไรละว่า CPU รุ่นที่ใช้งานอยู่นี้ เป็นแบบ multi-processor, multi-core แล้วมี hyperthreading ด้วยหรือปล่าว

ใน linux มีวิธีการตรวจสอบว่า CPU ของเราเป็นแบบใด ซึ่งวิธีการตรวจสอบก็ไม่ยากอะไรมากมาย เพียงแค่ดูข้อมูลในไฟล์ /proc/cpuinfo แต่มีข้อแม้ว่าจะต้องไม่ใช้งาน Xen-kernel เมื่อเราจะได้ใช้คำสั่ง เนื่องจากว่า kernel-xen จะไม่แสดงค่าของ CPU ที่(แสดงเป็น single-core processor)

#cat /proc/cpuinfo

ในบรรทัดด้านล่างนี้จะเป็นตัวอย่างของการอ่านค่าใน CPU แบบต่างๆ เรามาดูกันเลยว่า CPU ในแบบต่างๆจะมีข้อมูลอะไรแสดงออกมาบ้างดังตัวอย่างด้านล่าง

**ค่าที่เกี่ยวข้อง

“physical id” คือค่าของ processor socket เอาไว้ใช้ดูว่ามีกี่ processor

“siblings” คือค่า logical processors (ค่าจะเท่ากัน)

“cpu cores” คือค่า physical cores ของแต่ละ physical processor

What is a Red Hat Enterprise Linux Installation Number and where do I get it?

Wednesday, April 23rd, 2008 |

Resolution:

The Red Hat Enterprise Linux 5 Installation Number is a 16-character hexadecimal text string used during the installation process. The installation number enables a user to install the full set of supported packages included with the subscription. For a limited set of Red Hat Enterprise Linux subscribers, the installation number is also used to activate subscriptions for additional Red Hat products and services. It replaces the Subscription Number from earlier versions of Red Hat Enterprise Linux.

Ubuntu (Linux distribution)

Saturday, March 22nd, 2008 |

From Wikipedia, the free encyclopedia
Ubuntu (IPA: [ ubuntu] in English,[2] IPA: [ùbúntú] in Zulu) is a Linux distribution for desktops, laptops, and servers. It is based on Debian GNU/Linux. Ubuntu aims to provide an up-to-date yet stable operating system for the average user, and features a strong focus on usability, regular releases, and ease of installation. Ubuntu is sponsored by Canonical Ltd, owned by South African entrepreneur Mark Shuttleworth. The name of the distribution comes from the southern African concept of ubuntu which may be rendered roughly as “humanity toward others”, “we are people because of other people”, or “I am who I am because of who we all are”, though other meanings have been suggested.[3] This Linux distribution is named Ubuntu as it is expected to bring the spirit of Ubuntu to the software world. Ubuntu is free software and users can share it among each other.

Non-Uniform Memory Access

Wednesday, March 5th, 2008 |

Non-Uniform Memory Access or Non-Uniform Memory Architecture (NUMA) is a computer memory design used in multiprocessors, where the memory access time depends on the memory location relative to a processor. Under NUMA, a processor can access its own local memory faster than non-local memory, that is, memory local to another processor or memory shared between processors.

NUMA architectures logically follow in scaling from symmetric multiprocessing (SMP) architectures. Their commercial development came in work by Burroughs, Convex Computer (later HP), SGI, Sequent and Data General during the 1990s. Techniques developed by these companies later featured in a variety of Unix-like operating systems, as well as to some degree in Windows NT.

Install RedHat Enterprise Linux 5

Sunday, January 20th, 2008 |

ขั้นตอนการติดตั้งระบบปฏิบัติการลินิกส์สามารถทำได้หลายรูปด้วยกัน เช่น การติดตั้งผ่าน CD-ROM, การติดตั้งผ่าน Hard Disk, การติดตั้งผ่าน Network, การติดตั้งผ่าน Red Hat Network แต่ในที่นี้จะกล่าวเฉพาะการติดตั้งโดยใช้ CD-ROM เป็นหลัก ซึ่งการติดตั้งโดยใช้ CD-ROM นี้เป็นการติดตั้งที่ง่ายและสะดวกกว่าการติดตั้งแบบอื่นๆเพราะว่าแค่มี CD-ROM กับแผ่น RedHat Enterprise ก็สามารถติดตั้งได้แล้ว โดยขั้นตอนการติดตั้งไม่มีอะไรสลับซับซ้อนซึ่งสามารถติดตั้งได้ง่ายเพราะว่าการติดตั้งจะเป็นแบบ Graphic User Interface หรือ GUI นั้นเอง ซึ่งสำหรับบางท่านที่เพิ่งเริ่มหัดใช้งานใหม่ๆก็สามารถติดตั้งได้ง่ายเพียงแต่ทำตามขั้นตอนไปเรื่อยๆ

Linux

Tuesday, January 8th, 2008 |

Linux (commonly pronounced IPA: /ˈlɪnəks/ in English; variants exist) is a Unix-like computer operating system. Linux is one of the most prominent examples of free software and open source development: typically all underlying source code can be freely modified, used, and redistributed by anyone.

The name “Linux” comes from the Linux kernel, started in 1991 by Linus Torvalds. The system’s utilities and libraries usually come from the GNU operating system, announced in 1983 by Richard Stallman. The GNU contribution is the basis for the alternative name GNU/Linux.

Tags: linux, Linux History

การใช้ Man command

Monday, September 3rd, 2007 |

เมื่อบทที่แล้วผมได้พูดถึงการใช้ help ไป 2 ตัวด้วยกัน คือ whatis และ –help คราวนี้เรามาดูุวิธใช้ีคำสั่ง man กันครับ

#man command

เช่น ต้องการทราบคูมือการใช้คำสั่ง mkdir ให่พิมพ์

#man mkdir

SYNOPSIS
mkdir [OPTION] DIRECTORY…

DESCRIPTION
Create the DIRECTORY(ies), if they do not already exist.

Mandatory arguments to long options are mandatory for short options too.

-Z, –context=CONTEXT (SELinux) set security context to CONTEXT

-m, –mode=MODE
set permission mode (as in chmod), not rwxrwxrwx - umask

-p, –parents
no error if existing, make parent directories as needed

GNU/Linux distro timeline

Wednesday, August 29th, 2007 |

ในปัจจุบันมี Distros ของ Linux เกิดขึ้นมากมาย แต่จะมีสักกี่คนจะรู้บ้างละว่า Distros ไหนบ้างที่เป็น Distro ที่เป็นต้นกำเนิดของ Linux Distors ต่างๆ เราลองมาดูกันสิว่า Linux ที่เราใช้อยู่มีต้นกำเนิดมาจาก Distros ไหน

MS Cluster

Friday, August 24th, 2007 |

MS Window 2000 Advance Edition ทำได้แค่ 2 node
MS Window 2003 Standard Edition ทำได้ 4 node ถ้าจำไม่ผิด
MS Window 2003 Enterprise Edition ทำได้ 8 node ถ้าจำไม่ผิด


Microsoft แบ่ง Cluster เป็น 2 แบบเช่นเดียวกับ Linux คือ
1. High Availability หรือเรียกอีกอย่างว่า Fail-Over ก้อง่ายๆ เครื่องแรกตาย เครื่องก้อทำงาน เท่านั้นแหล่ะ ไม่ยาก โดยการทำงานนี้ต้องให้ซอฟแวร์ที่ทำงานสนับสนุนด้วย เนื่องจากเมื่อเครื่องแรกตายจะมีการย้าย process ที่เครื่องแรกทำงานอยู่มาทำงานที่เครื่องสอง และทำงานต่อไปได้ ซอฟแวร์ที่สนับสนุนเช่น Database : MSSQLServer 2000,2005 Enterprise, Oralce FailSafe, DB2, etc.. Mail : MSExchange 2000,2003 Enterprise, etc.. เป็นต้น

2. Load balanding ส่วนใหญ่จะเอามาใช้กับพวก Server Farm เป็นลักษณะมาช่วยกันประมวลผลอ่ะไม่มีอะไรมาก ส่วนใหญ่จะใช้กับ Web Server และ Database
Client : ก้อเครื่องที่ end-user ใช้อ่ะ
Server : เครื่องที่ใช้ทำ Cluster มี OS เป็น Window Server 2003
Storage : ก้ออย่างที่บอก Storage แต่ในที่นี้ใช้ Fibre เป็นตัวเชื่อม Storage กับ Server (แถม Fibre ก้อสายใยแก้วนำแสงอ่ะความเร็วน่ะปัจจุบัน 2 Gb/s ไม่เกินปี 2006 น่าจะเป็น 4 Gb/s)

Tags: cluster, Microsoft

Sponsor Links

Find entries :