How do I boost the Linux performace


 
Thread Tools Search this Thread
Operating Systems Linux How do I boost the Linux performace
# 8  
Old 11-05-2008
Quote:
Originally Posted by otheus
I second the notion that VMWARE is using a lot of memory. Are you running Windows within your Linux box? If not, I'd turn of VM or use another solution.

So if you end up still needing swap, get a second disk drive and put the swap partition on the second drive. Unless using scsi, that drive should be on the secondary IDE / STATA channel.
Thank you Otheus!

My PC is too slow even at boot up for some of the logins, it takes around 5 to 10 min to take me to the desktop after I enter the username and password.

I tested it without turning ON the VMware, but the performance hasn't changed much. Is it because I am using AMD processor. As far as I know it shouldn't be problem, please correct me if I am wrong.
# 9  
Old 11-05-2008
Increase the RAM to minimum of 2 GB for VMWare Server,
otherwise, I think VMWare workstation may use less than Server
so you may want to use workstation instead w/only 1 GB
# 10  
Old 11-06-2008
Quote:
Originally Posted by jayfriend
Thank you Otheus!

My PC is too slow even at boot up for some of the logins, it takes around 5 to 10 min to take me to the desktop after I enter the username and password.

I tested it without turning ON the VMware, but the performance hasn't changed much. Is it because I am using AMD processor. As far as I know it shouldn't be problem, please correct me if I am wrong.
For sure it's not the processor (Look at your vmstat; see the column "id"? that means what percent of the time (per second) that your CPU is doing nothing (idle).) I also suspect it's not memory since you disabled VMware. Therefore, I suspect it's (a) slow or misconfigured hard drive or (b) bad hardware on the bus causing too many interrupts.

Let's start with the hard drive.
How much free space do you have on your drive? Show us the output of "df - k" please.

Then Read this : Tuning IDE Hard Disk Performance

If you have a 5400 RPM drive and it's using a 33 MHz bus, then it's going to be slow.
# 11  
Old 11-07-2008
Quote:
Originally Posted by otheus
For sure it's not the processor (Look at your vmstat; see the column "id"? that means what percent of the time (per second) that your CPU is doing nothing (idle).) I also suspect it's not memory since you disabled VMware. Therefore, I suspect it's (a) slow or misconfigured hard drive or (b) bad hardware on the bus causing too many interrupts.

Let's start with the hard drive.
How much free space do you have on your drive? Show us the output of "df - k" please.

Then Read this : Tuning IDE Hard Disk Performance

If you have a 5400 RPM drive and it's using a 33 MHz bus, then it's going to be slow.
Please take look at the df -k output:
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/mapper/VolGroup00-LogVol00
73799088 33056048 36933760 48% /
/dev/sda1 101086 17623 78244 19% /boot
tmpfs 451824 0 451824 0% /dev/shm
# 12  
Old 11-08-2008
So the disk is not full... that's good. You might want to try defragmenting the / volume. Also, check how many inodes and blocks are free (using tune2fs). If the inodes are near full, which might be the case even with 48% disk usage, there will be performance problems. But probably, you need to (a) tune the disk given the link in my previous post, and (b) defragment.
# 13  
Old 11-10-2008
Quote:
Originally Posted by otheus
So the disk is not full... that's good. You might want to try defragmenting the / volume. Also, check how many inodes and blocks are free (using tune2fs). If the inodes are near full, which might be the case even with 48% disk usage, there will be performance problems. But probably, you need to (a) tune the disk given the link in my previous post, and (b) defragment.
Hi Otheus,

Following is the output of tune2fs.

tune2fs 1.39 (29-May-2006)
Filesystem volume name: /boot
Last mounted on: <not available>
Filesystem UUID: adedf01a-11a0-474d-a0fb-b0fb618c5489
Filesystem magic number: 0xEF53
Filesystem revision #: 1 (dynamic)
Filesystem features: has_journal ext_attr resize_inode dir_index filetype sparse_super
Default mount options: user_xattr acl
Filesystem state: clean
Errors behavior: Continue
Filesystem OS type: Linux
Inode count: 26104
Block count: 104388
Reserved block count: 5219
Free blocks: 83463tune2fs 1.39 (29-May-2006)
Filesystem volume name: /boot
Last mounted on: <not available>
Filesystem UUID: adedf01a-11a0-474d-a0fb-b0fb618c5489
Filesystem magic number: 0xEF53
Filesystem revision #: 1 (dynamic)
Filesystem features: has_journal ext_attr resize_inode dir_index filetype sparse_super
Default mount options: user_xattr acl
Filesystem state: clean
Errors behavior: Continue
Filesystem OS type: Linux
Inode count: 26104
Block count: 104388
Reserved block count: 5219
Free blocks: 83463
Free inodes: 26065
First block: 1
Block size: 1024
Fragment size: 1024
Reserved GDT blocks: 256
Blocks per group: 8192
Fragments per group: 8192
Inodes per group: 2008
Inode blocks per group: 251
Filesystem created: Tue Sep 23 11:28:12 2008
Last mount time: Mon Nov 10 10:24:18 2008
Last write time: Mon Nov 10 10:58:58 2008
Mount count: 176
Maximum mount count: -1
Last checked: Tue Sep 23 11:28:12 2008
Check interval: 0 (<none>)
Reserved blocks uid: 0 (user root)
Reserved blocks gid: 0 (group root)
First inode: 11
Inode size: 128
Journal inode: 8
Default directory hash: tea
Directory Hash Seed: bd7df157-0fae-4d98-aff4-23eaa8dc92aa
Journal backup: inode blocks

Free inodes: 26065
First block: 1
Block size: 1024
Fragment size: 1024
Reserved GDT blocks: 256
Blocks per group: 8192
Fragments per group: 8192
Inodes per group: 2008
Inode blocks per group: 251
Filesystem created: Tue Sep 23 11:28:12 2008
Last mount time: Mon Nov 10 10:24:18 2008
Last write time: Mon Nov 10 10:58:58 2008
Mount count: 176
Maximum mount count: -1
Last checked: Tue Sep 23 11:28:12 2008
Check interval: 0 (<none>)
Reserved blocks uid: 0 (user root)
Reserved blocks gid: 0 (group root)
First inode: 11
Inode size: 128
Journal inode: 8
Default directory hash: tea
Directory Hash Seed: bd7df157-0fae-4d98-aff4-23eaa8dc92aa
Journal backup: inode blocks
=========================================================

I tried to execute the following commands to tune the harddrive, but they don't seem to be working on my PC.
Please take a look them and guide me further.



[root]# hdparm -t /dev/sda1

/dev/sda1:
Timing buffered disk reads: 6 MB in 3.15 seconds = 1.90 MB/sec
[root]# hdparm -T /dev/sda1

/dev/sda1:
Timing cached reads: 2236 MB in 2.00 seconds = 1118.49 MB/sec
------------------------------------------------------------------
[root]# hdparm -c1 /dev/sda1

/dev/sda1:
setting 32-bit IO_support flag to 1
HDIO_SET_32BIT failed: Invalid argument
IO_support = 0 (default 16-bit)

--------------------------------------------------------------------

[root]# hdparm -d1 /dev/sda1

/dev/sda1:
setting using_dma to 1 (on)
HDIO_SET_DMA failed: Inappropriate ioctl for device


-----------------------------------------------------------------------
[root]# hdparm -m 16 /dev/sda1

/dev/sda1:
setting multcount to 16
HDIO_SET_MULTCOUNT failed: Inappropriate ioctl for device
HDIO_GET_MULTCOUNT failed: Inappropriate ioctl for device
-------------------------------------------------------------------------------------------------

[root]# fsck
fsck 1.39 (29-May-2006)
e2fsck 1.39 (29-May-2006)
/dev/VolGroup00/LogVol00 is mounted.

WARNING!!! Running e2fsck on a mounted filesystem may cause
SEVERE filesystem damage.

Do you really want to continue (y/n)? yes


/dev/VolGroup00/LogVol00: clean, 345300/19052352 files, 8652505/19046400 blocks
e2fsck 1.39 (29-May-2006)
/dev/sda1 is mounted.

WARNING!!! Running e2fsck on a mounted filesystem may cause
SEVERE filesystem damage.

Do you really want to continue (y/n)? yes

/boot: clean, 39/26104 files, 20925/104388 blocks
# 14  
Old 11-10-2008
Quote:
Originally Posted by jayfriend
Hi Otheus,

Following is the output of tune2fs.
/boot is not very interesting. Run it on /dev/hda3
Quote:
I tried to execute the following commands (hdparm) to tune the harddrive, but they don't seem to be working on my PC. Please take a look them and guide me further.
Noo! You have SCSI disks!! As you noted in a previous message, /boot is on /dev/sda, which means SCSI. Go into your SCSI Bios setup (during a reboot) and see if you can determine the bus speed and max data rate for the device. Examples will be: 20, 40, 80, 160, 320 Mbits / s. Also see if you can identify the hard drive. If the SCSI BIOS doesn't help you, you can use dmesg or cat /proc/scsi/scsi

Quote:
Code:
[root]# fsck
fsck 1.39 (29-May-2006)
e2fsck 1.39 (29-May-2006)
/dev/VolGroup00/LogVol00 is mounted.  

WARNING!!!  Running e2fsck on a mounted filesystem may cause
SEVERE filesystem damage.

Do you really want to continue (y/n)? yes

NOOOOO NEVER DO THAT (unless you know what you're really doing). Did you not see the "SEVERE damage" part of the message?

Consider yourself lucky.
Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. Programming

Using boost in program created by g++

I am trying to use the split provided by boost. I have a string and want to split on "/". string value = "trig/4"; Have no idea how to compile and link it. I have extracted boost in /chrisd/tomso-12.04/source/library/boost_1_52_0 In my program /raytrac.cc I have put ... (5 Replies)
Discussion started by: kristinu
5 Replies

2. Programming

Boost.Test and CMake

Hi, I just started using CMake and the Boost Libraries. In this progress I encountered some problems. One of these problems is combining Boost unit tests with cmake. I don't know how to set the whole project up. I tried to set up a simple test project. This contains a main.cpp a comp.cpp and the... (0 Replies)
Discussion started by: ElCoyote
0 Replies

3. UNIX for Dummies Questions & Answers

How do I declare boost?

Hello all, I am trying to "make" a database system, VDB (Veritas Data Base), and when I run "make" I receive the following error: VDBException.h:19: error: expected `)' before '*' token VDBException.h:20: error: expected `)' before '*' token VDBException.h:43: error: expected `)' before '*'... (4 Replies)
Discussion started by: Tyler_92
4 Replies

4. Programming

Boost C++ ASIO Networking

Hi, Based on the following example in the Boost C++ website: www. boost.org/doc/libs/1_47_0/doc/html/boost_asio/example/echo/async_tcp_echo_server.cpp]doc/html/boost_asio/example/echo/async_tcp_echo_server.cpp I tried to create a similar TCP server that waits to accept a client connection... (0 Replies)
Discussion started by: tanlccc
0 Replies

5. Solaris

Solaris Performace and Tools

I always had helpful replies from this site when ever I have posted a question. My current problem is that I am trying to read a book titled "Solaris(TM) Performance and Tools: DTrace and MDB Techniques for Solaris 10" and I am frustrated because inspite of the fact that it is a good book I just... (2 Replies)
Discussion started by: Tirmazi
2 Replies

6. Solaris

boost thread not accessible to boost::move error

Hi All I am working unders Sun Solaris and I am not "/opt/boost/boost/thread/detail/thread.hpp", line 344: Error: boost::thread::thread(boost::thread&) is not accessible from boost::move(boost::detail::thread_move_t<boost::thread>). Do you know if there are other solutions other than... (2 Replies)
Discussion started by: manustone
2 Replies

7. Solaris

Sun Studio 10 + Boost 1.36

Is it possible to build Boost 1.35 using Sun Studio 10? I can build Boost 1.35 using Sun Studio 11 successful. However, i'm unable to build it using Sun Studio 10 using the exact method. I really apprecaite if any expert can help on this. Thanks, (2 Replies)
Discussion started by: shingpui
2 Replies

8. HP-UX

XML parsing performace comparison with windows using sax

sorry wrong forum..i dont know how to delete this or how to move it to HP UX section... I tested SAX XML parsing using xerces(http://xerces.apache.org/xerces-j/). I tested on Windows XP and HP-UX . I found that parsing time on HP is 5 times that on Windows. My server startup reads a lot of XML... (1 Reply)
Discussion started by: saurabh.sid
1 Replies
Login or Register to Ask a Question