Optimizing file system

 
Mario_88
Advisor

Optimizing file system

Hello:

I am trying to improve the performance of a filesystem. The main process that uses this filesystem writes in the following way:
------------------------
write(32768)
write(229376)
write(32768)
write(229376)
write(32768)
-------------------------
As you can see 256 Kb writes are divided in two physical writes 32768 and 229376.

How can we make this two writes combine in one?

Regards,
Mario.
3 REPLIES 3
Steven E. Protter
Exalted Contributor

Re: Optimizing file system

Shalom from Chicago Mario,

Online JFS an add in product can be used to defragment a filesystem, which will improve write performance a small amount.

Beyond that, the only other way I can see to improve performance is to look at the disk layout that underlies the filesystem. For heavy writes, raid 1 or raid 10 will perform better than raid 5.

As far as combining the writes, thats a programming question and you'd have to at least give us a hint as to what language you are using.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Bill Hassell
Honored Contributor

Re: Optimizing file system

You can't fix bad code with the operating system. There are some optimizations that take place in the driver and VxFS directory code but that is all running just fine. The programmer needs to rewrite the application.


Bill Hassell, sysadmin
Sunny Jaisinghani
Trusted Contributor

Re: Optimizing file system

Hi,

Defragmenting the file system with fsadm will improve the performance of your file system.

Regards