March 17 2011

Rectifying “inconsistent Filesystem Structure” Error In Linux Operating System

Tagged Under : , , , , , , , , , , , , , , , , , , , , , , , , , , ,

Are you facing file system structure inconsistency errors? Are you unable to boot your Linux computer? This is due to problems with Linux file system. In such cases, operating system can not get required information to boot and thus you face odd behavior. This behavior renders your entire system inaccessible and unusable. In such circumstances, you may experience horrifying situations of data loss. Data loss is a very critical situation that creates need of Data Recovery Linux.

When you try to start your Linux computer, you may come across any of the below symptoms:

•    You encounter “Error 16: Inconsistent filesystem structure” error message while booting your computer. The system loops round and attempts to boot the system again, with the same error message.

•    When you select previous version of kernel at boot menu, the system starts booting, but runs “Checking filesystems” and does not give any error. However, when it goes to /boot directory, you get “Error reading block 49404 (Attempt to read block from filesystem resulted in short read) while doing inode scan.” error message.

•    You can get into the recovery mode, but can not run system maintenance tool.

•    When you run fsck utility from maintenance prompt, you encounter “short read” error.

If any of the above behaviors occur, you can not boot your system and it becomes inaccessible. In order to get your precious data recovered, Linux Recovery is required.

Cause

The above problem is caused by the Linux file system code for denoting internal error, which is returned by sanity checks of file system structure on hard drive not coping up with what is anticipates. It is generally resulted by a damaged file system or due to bugs in code handling in GRUB boot loader.

Resolution

File system corruption and boot errors call for hard drive formatting and operating system reinstallation. This replaces all the damaged system files and file system. However, it also removes all the data from hard drive and causes severe data loss.

In such events, Linux Data Recovery software come to your rescue. The applications are specifically designed to extensively scan the affected Linux hard drive and retrieve lost data. You need not have sound technical knowledge to perform Linux Recovery using these tools as they have interactive user interface.

Stellar Phoenix Linux Data Recovery software successfully recover lost, deleted, or inaccessible data from Linux hard drive. It supports recovery from Ext4, Ext3, Ext2, FAT12, FAT16, and FAT32 file system volumes. The software works well with all major versions of Linux operating system, such as Ubuntu, Fedora, SUSE, Debian, and Mandriva.

March 09 2011

Choosing the Best Operating System for your Computer

Tagged Under : , , , , , , , , , , , , , , , , , , , , , , , ,

When you bring home a new computer or update an old PC choosing a suitable operating system for your computer may be one critical decision you would have to make. Since operating system is software that allows computer to execute basic functions it is certainly the most vital part of your computer. Therefore, it is evident that you need to carry out a detailed study before you go ahead in choosing an operating system for your PC. If you are a novice it would be advisable to go forth for online operating system support.

In this article we would provide you a brief overview of the major Operating systems, which could possibly help you, make a wide decision.

The major three operating systems are:

Linux Operating System
Mac Operating System
Windows Operating System

Linux Operating System

Linux Operating System was developed by people from all over the world with a common goal of developing a free operating system. Its source code is open and free to anyone. Various programming teams are working for developing Linux Operating System for various purposes. Linux could be a best deal for businesses in which computer systems are required for basic functions. The negative point could be it is unable to use Windows programs. Another drawback is- Linux has no standard edition and since it is free you shall find no legal comebacks if you encounter a problem with the software.

Mac Operating System

Though this operating system is quite stable and works with a lot more programs as compared to Windows it does have its own disadvantages. For a person who has had more experience on Windows, switching to Mac interface would not be easy.

Besides, like Linux this operating system is unable to use Windows programs. Also, there are a few file types that are not easy to open. Another point would be files deleted in Mac OS are overwritten immediately which makes them unable to be recovered.

Windows Operating System

For many home and business users Windows Operating System is the only preferred operating system. Windows has many advantages and possesses almost universal 3rd party programming support. However, there are a large number of bugs discovered in windows and Windows Operating System is more susceptible to viruses as compared to the other systems.

Each operating system has its own pros and cons; the best way to choose one would be to analyse your needs and then go ahead in installing a suitable one. Online manuals could be some help in providing you Operating System Support; however you could use some live help through Online Operating System Support.

There are many organizations which offer you top rate Online Operating System Support service. Their experts would not only help in choosing a good operating system, they would also install the same and provide you result-oriented support whenever you need it.

March 05 2011

A PRACTICAL (COMPARATIVE) STUDY OF SCHEDULING POLICIES IN LINUX AND WINDOWS 2K OPERATING SYSTEMS

Tagged Under : , , , , , , , , , , , , , , , , , , , , , , , , , , , ,

A  PRACTICAL (COMPARATIVE) STUDY OF

 SCHEDULING POLICIES

IN

LINUX AND WINDOWS 2k  OPERATING SYSTEMS

 

*B.Madar

Abstract

Shared-memory multiprocessors are frequently used as compute servers with multiple parallel applications executing at the same time. In such environments, the efficiency of a parallel application can be significantly affected by the operating system scheduling policy.

 

It is common to evaluate scheduling policies based on their mean response times. Another important, but sometimes opposing, performance metric is a scheduling policy’s fairness.

 

Then, how do we evaluate a scheduling policy:

Ability to satisfy all deadlines.
CPU utilization—percentage of time devoted to useful work.
Scheduling overhead—time required to make scheduling decision.

 

 

We will concentrate on scheduling at the level of selecting among a set of ready processes. Scheduler is invoked whenever the operating system must select a user-level process to execute:

• After process creation/termination

• A process blocks on I/O

• I/O interrupt occurs

• Clock interrupt occurs (if preemptive).

 

Introduction on Scheduling Policies.

 

Types of processes:

• Interactive jobs

• low priority, cpu bound jobs that use excess processor capacity (e.g., calculating _ to

101000000 decimal places)

• Somewhere in between

Distinguish between a short and long process. Based on the time a process runs when it

gets the CPU. An I/O bound process is short and a CPU bound process is long.

Note; The idea of short vs. long is determined by how much of its time slice that a process uses, not the total amount of time it executes.

 

 

 

 

Criteria

 

Criteria for a good scheduling algorithm:

 

• Fairness: all processes get fair share of the CPU

• Efficiency: keep CPU busy 100% of time

• Response time: minimize response time

• Turnaround: minimize the time batch users must wait for output

• Throughput: maximize number of jobs per hour

They are competing. Fairness/efficiency, interactive/batch

 

Measurements

In order to compare different short-term policies, we need a measure of performance.

Assume that a process needs t time in execution before it leaves the ready list:

Execution time (t) — execution time

Response time (T) — finish time – arrival time. (Wall clock time)

Missed time (M) — T – t; time spend on the ready list or in blocked state.

Penalty ratio (P) — T/t; penalty of 1 ideal (lower penalty is good)

Response ratio (R) — t/T; response of 1 ideal (higher response is good)

 

Other useful measures:

• Kernel time — amount of time the spent by the kernel in making policy decisions and carrying them out. Context switching. A well tuned O.S. Uses between 10-30%.

• System time — kernel time devoted to a process.

• Idle time — amount of time spend when the ready list is empty. Thus running a

NULL process or running NULL routine code.

 

Scheduling Policies of LINUX OS

Linux offers 3 different ways to deal with scheduling, 2 of them for real-time applications and 1 for normal processes. A static priority value, sched_priority, ranging from 0 to 99, is assigned to each process. This static priority value can be changed only via system calls. The scheduler keeps a list of runnable processes with these priority values. The way Linux determines which process will be running next is by looking at such list for the highest priority number, and then takes the process at the head of the list. The scheduling policy determines where a process will be inserted in the event that it has an equal priority value with another process. Likewise, it will determine how it will move once inside the list.

Most processes use SCHED_OTHER which is the default universal time-sharing scheduler policy. Other most time-critical applications that require precise control use SCHED_FIFO and SCHED_RR. When using SCHED_OTHER, processes must be assigned an static priority value of 0. Otherwise, if using the two other algorithms, the priority value shall range from 1 to 99. Only such processes with super user privileges can have a priority value greater than 0, therefore they may use SCHED_FIFO and SCHED_RR.

All scheduling is preemptive, meaning that if a process with a higher priority is ready to run, the currently running process is preempted and taken to the wait list. It is the task of the scheduling policy to determine the ordering within the list of runnable processes with equal static priority value.

SCHED_FIFO: First In – First Out Scheduling

SCHED_FIFO is used only with priority values ranging from 1 to 99, that is, a SCHED_FIFO process ready to be run will always preempt a normal, SCHED_OTHER, process currently running. SCHED_FIFO does not deal with time slicing. If a SCHED_FIFO process has been preempted by a higher priority process, it will go to the top of the wait list and will resume running as soon as all processes with higher priority values have been blocked.

 

SCHED_RR: Round Robin Scheduling

SCHED_RR works just like SCHED_FIFO, but with one difference: each SCHED_RR process is allowed to run for a specified time quantum. As soon as a running process reaches its allotted time quantum it will be put back at the end of the same-priority-value list. If a SCHED_RR process has been preempted by a higher value priority process, it will complete the unexpired portion of its allotted time quantum when it resumes execution.

SCHED_OTHER: Default Linux Time-Sharing Scheduling

This is the usual time-sharing scheduling algorithm used for all normal processes, or processes that do not require special static priority real-time mechanisms. The process that runs is determined by a dynamic priority inside the list of the same static priority values processes, namely 0. The dynamic priority is based on the nice level and increased for each time quantum the process is ready to run, but denied to run by the scheduler. This way ensures fairness among all static priority 0 processes.

Nice Level – the ‘nice’ command changes the priority level value of a process. The priority that may be adjusted by ‘nice’ runs from -20, the highest, to 19 the lowest.

 IMPLEMENTATION

Each of the three programs in both, the Kernel and User Levels, was run 25 times, which produced varying time results depending on the random numbers generated by them. An average was computed of these 25 results to come up with a final result for each algorithm.

The time was accurately measured using the following commands:

start_time = clock ();
end_time = clock ();
cpu_time_used = ((double) (end_time – start_time)) / CLOCKS_PER_SEC;
system (“date”);

 IMPLEMENTATION OF SCHEDULING AT KERNEL LEVEL

SCHED_FIFO: First In – First Out Scheduling

Three different programs were written in C to implement and test the FIFO algorithm. Each program creates 10 threads, and each thread, in turn, generates between 300,000 and 3,000,000 random numbers so they utilize CPU resources in varying time slots.

A completely different program from the ones indicated in the paragraph above runs the 3 main programs.

SCHED_RR: Round Robin Scheduling

Three different programs were written in C to implement and test the Round Robin algorithm. Each program creates 10 threads, and each thread, in turn, generates between 300,000 and 3,000,000 random numbers so they utilize CPU resources in varying time slots.

A completely different program from the ones indicated in the paragraph above runs the 3 main programs.

SCHED_OTHER: Default Linux Time-Sharing Scheduling

Three different programs were written in C to implement and test the other algorithm. Each program creates 10 threads, and each thread, in turn, generates between 300,000 and 3,000,000 random numbers so they utilize CPU resources in varying time slots.

A completely different program from the ones indicated in the paragraph above runs the 3 main programs.

 IMPLEMENTATION OF SCHEDULING AT USER LEVEL

SCHED_FIFO: First In – First Out Scheduling

Three different programs were written in C to implement and test the FIFO algorithm. Each program creates 10 threads, and each thread, in turn, increases or decreases the number of random numbers by a random number so each utilizes CPU resources in varying time slots.

A completely different program from the ones indicated in the paragraph above runs the 3 main programs.

Shortest Job Fist Scheduling

Three different programs were written in C to implement and test the Shortest Job First algorithm. Each program creates 10 threads, and each thread, in turn, increases the number of random numbers so they utilize CPU resources in varying time slots.

A completely different program from the ones indicated in the paragraph above runs the 3 main programs.

 

 

Longest Job Fist Scheduling

Three different programs were written in C to implement and test the Shortest Job First algorithm. Each program creates 10 threads, and each thread, in turn, decreases the number of random numbers so they utilize CPU resources in varying time slots.

A completely different program from the ones indicated in the paragraph above runs the 3 main programs.

 TEST RESULTS

After running each of the programs for each of the algorithms 25 times, as specified earlier, the average time results have been placed in the table below:

 

 

Program 1
Time (secs)

Program 2
Time (secs)

Program 3
Time (secs)

TOTAL
TIME (secs)

sched_setscheduler (pid, SCHED_FIFO, &p)

31

11

8

50

sched_setscheduler (pid, SCHED_FIFO, &p)

31

11

8

50

sched_setscheduler (pid, SCHED_RR, &p)

17

13

18

48

sched_setscheduler (pid, SCHED_OTHER, &p)

29

11

11

51

SJF

40

31

30

101

LJF

36

32

29

97

 

 

Scheduling in Windows 2000

 

Windows 2000 schedules at the thread granularity.
Priority-driven, preemptive scheduling system
The highest-priority runnablethread always runs.
Time-sliced, round-robin within a priority level.
Windows 2000 uses 32 priority levels
System level (0), Variable levels (1-15), Real-time levels (16-31)

from Win32 point of view

Processes are given a priority class upon creation:

Idle, Below Normal, Normal, Above Normal, High, Real-time

Changeable by Task Manager.
The individual threads have a relative priority within the class:
Idle, Lowest, Below-Normal, Normal, Above Normal, Highest, Time-Critical.

 

 

 

 

 

 

 

Quantum in Windows 2000
By default, threads start with a quantum value of

      6 on Windows 2000 Professional

36 on Windows 2000 Server
The rationale for longer default value on Windows 2k Server is to minimize context switching.
Each time the clock interrupts, the clock-interrupt routine deducts a fixed value (3) from the thread quantum.
The clock interval for most x86 uniprocessorsis 10ms, and for most x86 multiprocessors, 15ms.

 

Partial quantum decay–The reason quantum is expressed in terms of a multiple of 3 quantum units per clock tick is to allow for partial quantum decay on wait completion.–When a thread executes a wait function, its quantum is reduced by 1 quantum unit. –This partial decay addresses the case in which a thread enters a wait state before the clock interval timer fires.–If this adjustment is not made, it would be possible for threads never to have their quanta reduced.

 

 

 

 

 

•Foreground quantum boost

–The field is an index into a three-entry quantum table used to obtain the quantum for the threads in the foreground process.

•The value of 3 is invalid and treated as 2.

–The quantum for threads in background processes is taken from the first entry in this quantum table.

–The foreground process is the process that owns the thread that owns the window that’s in focus.

 

CONCLUSIONS

The results at the Kernel Level were much better for the Round Robin algorithm and much worse for the other algorithm.

The results at the User Level were best for LJF and worst for SJF.

Scheduling performance criteria and goals are dependent on environment

There exist several different algorithms targeted for various systems

Traditional OSes like Windows, Linux, Unix….Usually uses a priority level algorithms

We conclude that there exists a false dichotomy between schedulers based on proportional share techniques and schedulers. The important question is not which class of algorithms is better, but rather, for a given operating system and set of applications,

(1) to what degree must existing infrastructure such as a periodic timer interrupt and system for manipulating priorities be utilized; (2) how much pessimism and context switch overhead is acceptable; and, (3) what scheduling parameters can the developers of real-time applications be reasonably expected to provide?

 

  BIBLIOGRAPHY

1. Operating Systems Class Website
2.Operating Systems, Harvey M. Deitel, Paul J. Deitel, David R. Choffnes, Third Edition
3.Understanding the Linux Kernel, O’Reilly Online Catalog
4.Linux Process Scheduling
5.Linux Process Scheduling – Summary.

6. Various websites related to OS

 

 

* Faculty in Alluri Institute of Management Sciences, Hunter Road Warangal,Andhra Pradesh-506001

March 02 2011

Linux the Free Operating System for Your Computer

Tagged Under : , , , , , , , , , , , , , , , , , , , , , , , ,

<!– p { margin-bottom: 0.21cm; } –>

If you have taken the time to read my bio you will notice that I’m biased towards the belief that computer operating systems should be inexpensive or even better free. Several years ago I stumbled upon Unix while working out in the field as a computer support specialist. I became fascinated by this different type of operating system controlling one of the servers at a client’s place of business. Wanting to know more I decided to do some research as to what Unix was all about. It was during this time I was introduced to the world of free operating systems and free software.

I have spent a great deal of time researching all the information I could find on why someone would go to the trouble of creating an operating system that he would give away for free. It is through this research that I discovered a whole community of people dedicated to ensuring the Linux operating system would remain free as well as free software to go with it. These people remain, to this day, dedicated to improving Linux as well as creating software that meets or exceeds the needs of the those choosing to use the above.

Ubuntu is just one such version of Linux that is fast becoming the most user friendly operating systems. Ubuntu comes packaged with software most used by all of us. You will find applications such as Open Office, equivalent to the Windows version of Microsoft Office. You will find everything from games to Internet browsers, programming to sound and video and much much more. All of this free and supported. Have a problem with a certain software package? You will find the anwers available only a few keystrokes away. Type your problem in a browser and you will find a forum or website with the answer. If the answer isn’t there, just submit your request for help and someone will be eager to help you.

Since Ubuntu Linux is free and open source this means the program coding is also accessible. For those who are familiar with programming, this becomes a great advantage to changing the operating system or software as you see fit. Another advantage is that you can get involved by providing feedback as to your likes or dislikes. If you are a programmer you can tweek some of the software and submit it to be passed along to other like minded people wanting to see that Linux and the software packages remain free to use for everyone.

This article is meant as an introduction to the world of free operating systems and software. Stay tuned for more articles where I will be writing more in depth reports on the Linux operating system as well as the many available software packages that can be used with Linux.

February 13 2011

Know Your Computer Operating System

Tagged Under : , , , , , , , , , , , , , , , , , , , , , , ,

The operating system is a software whose function is to provide services to the user, whereby the operating system also serves as an interface between hardware and software. As we all know that, the computer consists of three basic parts, namely hardware, software and user.
The operating system acted as an intermediary between programs and hardware, imagine if in case there is no operating system, all programs are designed to be able to recognize all kinds of different hardware. This is where the operating system role, operating system provides services to programs about the details of hardware such as mice, keyboards, monitors, etc..

Brand operating system on the market very much at all, which distinguishes only be made by different companies and also they have different ways in terms of arrangement in the form of a memory access interface, how to use, etc. But it basically had the same role and functions. When you first run the computer, there is an initial program that must run, the program is called bootstrapping. This program manages all aspects of hardware, after the program is finished running, the next operating system will find stored in your hard disk, floppy, cd, etc.. Depending on which operating system is stored. After the operating system is found, then all the controls over hardware, be taken over by the operating system.

1. DOS (Disk Operating System) as its operating system
DOS is one of the operating system made by Microsoft, DOS itself provide services to users via a text based shell. Interface that is provided in the form of the command line, so users need to type the command with the keyboard to get a service
particular.

2 Linux as its operating system
Linux operating system is one that has the characteristics similar to UNIX operating system, Linux itself was created by Linux Torfald. Linux is open source which means all the source code can be changed and it has freely disseminated. Linux services provided is similar to DOS, but Linux can also provide services such as GUI (Graphical User Interface) based shell.

3. FreeBSD
FreeBSD is the only derivative of the UNIX operating system that is free. The operating system was mostly used as a server with a variety of purposes, because the famous toughness. To use this operating system, not too much different with the linux operating system.

February 12 2011

Buy Linux Operating System

Tagged Under : , , , , , , , , , , , , , , , , , , , , , ,

The Unix operating system was conceived and implemented in 1969 at AT&T’s Bell Laboratories in the United States by Ken Thompson, Dennis Ritchie, Douglas McIlroy, and Joe Ossanna. Unix derived its name as a joke and reference to an experimental operating system that was slow and ineffective called MULTICS. It was first released in 1971 and was initially entirely written in assembly language, a common practice at the time. Later, in a key pioneering approach in 1973, Unix was re-written in the programming language C by Dennis Ritchie, (with exceptions to the kernel and I/O). The availability of an operating system written in a high-level language allowed easier portability to different computer platforms. With a legal glitch forcing AT&T to license the operating system’s source code, Unix quickly grew and became widely adopted by academic institutions and businesses.

Today Linux distributions are used in numerous domains, from embedded systems to supercomputers, and have secured a place in server installations with the popular LAMP application stack. Use of Linux distributions in home and enterprise desktops has been expanding. They have also gained popularity with various local and national governments. The federal government of Brazil is well known for its support for Linux. News of the Russian military creating their own Linux distribution has also surfaced, and has come to fruition as the G.H.ost Project. The Indian state of Kerala has gone to the extent of mandating for all state high schools to run Linux on their computers. China uses Linux exclusively as the operating system for its Loongson processor family to achieve technology independence. In Spain some regions have developed their own Linux distributions, which are widely used in education and official institutions, like gnuLinEx in Extremadura and Guadalinex in Andalusia. Portugal is also using its own Linux distribution Caixa Mágica, used in the Magalhães netbook and the e-escola government program. France and Germany have also taken steps towards the adoption of Linux.

Torvalds continues to direct the development of the kernel. Stallman heads the Free Software Foundation, which in turn supports the GNU components. Finally, individuals and corporations develop third-party non-GNU components. These third-party components comprise a vast body of work and may include both kernel modules and user applications and libraries. Linux vendors and communities combine and distribute the kernel, GNU components, and non-GNU components, with additional package management software in the form of Linux distributions.

February 11 2011

Alternative Operating Systems

Tagged Under : , , , , , , , , , , , , , , , , , , , , , ,

Linux can be seen as the perfect alternative operating system. The Unix operating system was conceived and implemented in 1969 at AT&T’s Bell Laboratories in the United States by Ken Thompson, Dennis Ritchie, Douglas McIlroy, and Joe Ossanna. Unix derived its name as a joke and reference to an experimental operating system that was slow and ineffective called MULTICS. It was first released in 1971 and was initially entirely written in assembly language, a common practice at the time. Later, in a key pioneering approach in 1973, Unix was re-written in the programming language C by Dennis Ritchie, (with exceptions to the kernel and I/O). The availability of an operating system written in a high-level language allowed easier portability to different computer platforms. With a legal glitch forcing AT&T to license the operating system’s source code, Unix quickly grew and became widely adopted by academic institutions and businesses.

Today Linux distributions are used in numerous domains, from embedded systems to supercomputers, and have secured a place in server installations with the popular LAMP application stack. Use of Linux distributions in home and enterprise desktops has been expanding. They have also gained popularity with various local and national governments. The federal government of Brazil is well known for its support for Linux. News of the Russian military creating their own Linux distribution has also surfaced, and has come to fruition as the G.H.ost Project. The Indian state of Kerala has gone to the extent of mandating for all state high schools to run Linux on their computers. China uses Linux exclusively as the operating system for its Loongson processor family to achieve technology independence. In Spain some regions have developed their own Linux distributions, which are widely used in education and official institutions, like gnuLinEx in Extremadura and Guadalinex in Andalusia. Portugal is also using its own Linux distribution Caixa Mágica, used in the Magalhães netbook and the e-escola government program. France and Germany have also taken steps towards the adoption of Linux.

Torvalds continues to direct the development of the kernel. Stallman heads the Free Software Foundation, which in turn supports the GNU components. Finally, individuals and corporations develop third-party non-GNU components. These third-party components comprise a vast body of work and may include both kernel modules and user applications and libraries. Linux vendors and communities combine and distribute the kernel, GNU components, and non-GNU components, with additional package management software in the form of Linux distributions.

Incoming search terms for the article: