As all we know that a hard drive is made of the millions of sectors and it is possible that some of these sectors gone bad.As I a want to told you that when a hard drive is manufactured it still contains some bad sectors and as the life span of hard drive's increase or it gets old the number of bad sectors increased in it.A sector is a small area on the surface of the hard drive or a floppy disk.As all we know that each hard drive have several platters.The platters are the disc that are covered with magnetic material which is used to hold data and they are divided into a number of concentric rings known as track.
If we talk about a floppy disk(1.44 MB) than it contains only one platter and having about 160 tracks.But in the case of hard drive it contains a lot of tracks and each track is divided into smaller storage areas called sectors.Now when a sector goes bad the whole data that it contains lost and it cannot be recovered.Bad sectors never affects the data of the remaining hard disk and disk is still completely usable.The main problem with the bad sectors is that it cannot be repaired,it only marked as unusable.Once you marked these bad sectors as unusable then operating system will never store data in these areas and storage capacity of your hard drive is decreased.
Friday, January 30, 2009
Bad Sectors
0 comments Posted by Saurav at 4:03 AM
Labels: Computer Components
Friday, January 23, 2009
Avoid Swapping of Files
ConservativeSwapfile Usage=1 You can edit this file in Notepad. In case you face any problems such as programs crashing frequently, remove this line and reboot.
0 comments Posted by Saurav at 7:54 AM
Tuesday, January 20, 2009
Enable your computer's DMA
0 comments Posted by Saurav at 9:32 AM
Labels: Memory Management
Friday, January 16, 2009
File System Properties
64 folders and 2,729 files. With the kind of memory available on systems today, this slight overhead hardly makes any difference, especially considering the performance gain it provides.
0 comments Posted by Saurav at 12:08 PM
Labels: File System
Thursday, January 15, 2009
Optimize your Virtual Memory
By default, Windows uses a variable swap file that is created on boot up and where the size is dynamically modified when required. Though this works just fine, it is not the most optimal. You can never get the speed of RAM from the hard disk, but you can make it slightly faster. The best way to configure the swap file is to have a permanent swap file, preferably on a dedicated partition. This minimizes the effect of disk fragmentation and increases seek time. Another practice that a few power users have adopted is to place the swap file on the first partition and the operating system on the following partition. Data closer to the center of the drive is read slightly faster than data at the periphery. This is especially useful for PCs with only 64 or 128 MB of RAM where data would frequently be swapped to the hard disk and can be easily done with BIOSes that allow booting from the D drive.
To change the swap file settings, open Control Panel > System > Performance and click Virtual Memory. Choose 'Let me specify my own virtual memory settings' and select the drive for the swap file. Note that no matter what partition you boot from, it will always appear as the C drive from DOS and Windows 98, and the first partition that is recognized as C by the BIOS will be assigned a higher drive letter. Set the minimum and maximum size for the swap file. Both these numbers should be identical to set a permanent (non-variable) swap file. Ideally, it should be two-and-a-half times the amount of RAM on your system, but if you have a separate partition for it, you may not want it to be less than 512 MB-if it is lower, it will have to be a FAT16 partition, not FAT32.
0 comments Posted by Saurav at 1:36 AM
Labels: Virtual Memory
Wednesday, January 14, 2009
Concept of Thrashing
1 comments Posted by Saurav at 5:58 AM
Labels: Virtual Memory
Tuesday, November 11, 2008
Client Server Communication with the help of Sockets
A socket is defined as an end point for communication between client and server.A socket is identified by a IP address concatenated with the port number.In general all sockets work on the client server architecture.In server client system, server waits for the incoming client request by listening to a specified port.Once the server received the request from the client it accepts the connection from the client socket to complete the connection.As there are some standards ports already defined for some specific services like a telnet server listens to port 23,a ftp server listen to port,a http server listens to port 80.All ports below 1024 are considered well known and we can use them to implement standard devices.Now when a client process requests to initiates a connection with the server,it is assigned a port by the host computer.This port is some arbitrary number greater that 1024.
Let us consider a example,there exists a client on host with IP address 185.145.23.87 wishes to establish a connection with the web server which is listening on the port 80 and having IP address 164.25.17.5,now let host X is assigned a port number 1547.Now this connection will contain a pair of sockets (185.145.23.87:1547) on host X and (164.25.17.5:80) on the web server.Now the packets traveled between the hosts are delivered to the appropriate process based on the destination port number.The main thing that kept in mind during connection that all connections must be unique,that means if another process on host X wants to establish a connection with web server then the port number that is assigned to this process must be greater that 1024 and different from 1547.
Hope you found this post useful.Waiting for your responses for further improvement.
Thanks for visiting.
0 comments Posted by Saurav at 12:40 AM
Labels: Client-Server, Operating Systems

