linux question

Posted on 2014-02-09
Last Modified: 2014-02-10
1. In linux where is the drivers are located? How do we normally install driver any devices?

2. what is the linux boot process? what is upstart?

3. how is sectory/cylinder/track works here.

Disk /dev/sda: 17.1 GB, 17179869184 bytes
255 heads, 63 sectors/track, 2088 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

4.  what is GPT and where is used?

5.  for a given process how do i find the process tree in linux?

6.  in grub.conf , we have the following. what is kernel and initrd? why do we need initrd?

title CentOS (2.6.18-164.el5)
        root (hd0,0)
        kernel /vmlinuz-2.6.18-164.el5 ro root=/dev/VolGroup00/LogVol00
        initrd /initrd-2.6.18-164.el5.img

6.  what are process states and please explain.

7. how one can find the bottleneck of cpu contention, memory contention and disk I/O contention?

I really appreciate if you can help me to understand these questions.
Question by:ittechlab
LVL 17

Expert Comment

by:Kent Dyer
ID: 39846448
/lib/modules/`uname -r`/.

But is not just a simple matter of copying files there..  You do need to install drivers as the kernel needs to be aware they are there..
LVL 34

Accepted Solution

Seth Simmons earned 500 total points
ID: 39846450
1) some drivers are built into the kernel while most others can be specified manually to load

Howto: Linux Add or Remove a Linux Kernel Modules / Drivers

Loadable kernel module

2) here is a detailed article about upstart; it's basically the newest way of handling system events (startup, shutdown, etc.) instead of init


3) cylinder/head/track/'s how the physical disk itself is configured

4) GPT is GUID Partition Table which is used primarily for hard drives larger than 2TB because that is the limit for the old MBR format; requires UEFI to boot Windows from a GPT drive

GUID Partition Table

5) you could use either pstree or ps axf

6) the linux kernel (unix-like OS) is essentially what runs everything - manages applications, processes, hardware, etc.  initrd uses a small amount of physical memory during the boot process

Linux kernel

Understanding Linux initrd – initial RAM disk


7) linux process states are what the process is doing - either running [R], sleeping [S], zombie [Z] (disconnected from parent process), uninterruptible sleep [D] (typically a process stuck in I/O wait such as stale NFS mount), or job stopped [T]

8) there are a few ways to determine bottlenecks.  for disk, you can use tools like sar or vmstat which will show various statistics.  top will show info also but not quite as detailed as others.  for example, if in vmstate the so and si columns are frequently non-zero values, this means there is a lot of swap usage and could point to a memory bottleneck.  the r column of vmstat is the cpu run queue.  if this number is higher than the number of processing cores, then you have cpu bottleneck

Author Comment

ID: 39847058
"the r column of vmstat is the cpu run queue.  if this number is higher than the number of processing cores, then you have cpu bottleneck "

even though i have r is higher than number of cores i am not having cpu issue, how do you conclude this statement is true. Please justify me. thanks

[root@nagios ~]# vmstat
procs -----------memory---------- ---swap-- -----io---- --system-- -----cpu------
 r  b   swpd   free   buff  cache   si   so    bi    bo   in   cs us sy id wa st
 8  0      0 1386304 152940 403684    0    0     2    19  158   35  0  1 99  0  0

[root@nagios ~]# cat /proc/cpuinfo
processor       : 0
vendor_id       : GenuineIntel
cpu family      : 6
model           : 15
model name      : Intel(R) Xeon(R) CPU           E5345  @ 2.33GHz
stepping        : 1
cpu MHz         : 2327.524
cache size      : 4096 KB
fpu             : yes
fpu_exception   : yes
cpuid level     : 10
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss syscall nx lm constant_tsc up nonstop_tsc pni cx16 lahf_lm
bogomips        : 4655.04
clflush size    : 64
cache_alignment : 64
address sizes   : 40 bits physical, 48 bits virtual
power management: [8]

Featured Post

Scale it in WD Gold

With up to ten times the workload capacity of desktop drives, WD Gold hard drives employ advanced technology to deliver among the best in reliability, capacity, power efficiency and performance.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Guacamole and browser performance 1 63
Auto channel for WiFi (Access Point) 3 77
Linux/Apache File Ownership/Permissions 1 53
This document is written for Red Hat Enterprise Linux AS release 4 and ORACLE 10g.  Earlier releases can be installed using this document as well however there are some additional steps for packages to be installed see Metalink. Disclaimer: I hav…
The purpose of this article is to demonstrate how we can use conditional statements using Python.
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

911 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

24 Experts available now in Live!

Get 1:1 Help Now