Sponsored Content
Operating Systems Linux How do I boost the Linux performace Post 302256705 by jayfriend on Monday 10th of November 2008 11:32:14 AM
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
 

8 More Discussions You Might Find Interesting

1. 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

2. 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

3. 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

4. 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

5. 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

6. 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

7. 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

8. 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
All times are GMT -4. The time now is 04:12 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy