![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
#3
| |||
| |||
|
|
We are moving from 9.4 on HP/UX 11.11 (physical/hard drives) to 11.1 on RHEL 5 (VMWare/SAN) and have a couple of questions about the raw storage setup. |
#4
| |||
| |||
|
| On Tue, Nov 9, 2010 at 10:29 PM, Kennedy, Randy <RKennedy (AT) scottsdaleaz (DOT) gov wrote: We are moving from 9.4 on HP/UX 11.11 (physical/hard drives) to 11.1 on RHEL 5 (VMWare/SAN) and have a couple of questions about the raw storage setup. Please verify why you cannot go to 11.5 or even 11.7. 11.1 has support but it won't receive any new features. If you're having a lot of work to move, you might as well move to a more recent and feature rich version. I suppose you may be limited by some third party certification, but it would be a good idea to make some pressure... As for the raw devices, as somebody already mentioned, you could use standard filesystem (no journaling) files with DIRECT_IO. It isn't as efficient as raw devices.... Another option would be to use block devices (devices created with lvm (Linux Volume Manager?). I'm almost sure I found a site where this was explained, but I couldn't find it. The closest I get was this: http://www.informix-zone.com/node/38 But this article still talks about the "raw" command. Currently it's deprecated and it is not needed. You can use the block devices directly AFAIK. Regards. -- Fernando Nunes Portugal http://informix-technology.blogspot.com My email works... but I don't check it frequently... _______________________________________________ Informix-list mailing list Informix-list (AT) iiug (DOT) org http://www.iiug.org/mailman/listinfo/informix-list |
#5
| |||
| |||
|
|
The developer of the Linux RAW module still maintains it and it is a viable option. However, following Linus Torvald's lead, Red Hat has deprecated RAW (as was already mentioned). Linus never wanted RAW devices included in Linux and has always opposed it on philosophical bases. This is from an email Linus sent on the subject in 1996 (before the RAW module was released): "The main reason there are no raw devices is that I personally think that raw devices are a stupid idea ...there are old-fashioned databases that think they can do a better job of it than the kernel does. They are usually wrong". Linus just doesn't get it and now he is on a campaign to eradicate RAW from all Linux releases. So far, AFAIK, he has only been successful in convincing RH to drop them, but you can get the module separately and include it yourself if you want. On using other options: - Block devices go through the cache unless DIRECT_IO is enabled. I do not know if DIRECT_IO works with block devices on Linux. They will not work together on AIX for example. - Filesystem files - - With DIRECT_IO enabled and KAIO configured correctly (so you have to tune the Linux KAIO resources) filesystems are about 5-8% slower than RAW on Linux. Without DIRECT_IO filessystem chunks are about 30-35% slower than RAW. - You should NEVER use ANY journaled filesystems for database chunks. That means no EXT3 or EXT4 filesystems on Linux, no ZFS on Linux or Solaris, only EXT2 filesystems should be used on Linux for database chunks. AIX's JFS2 (and the equivalent open source JFS filesystem) is less problematic since it only journals meta-data and not data pages. Fully journaling filesystems do not overwrite data pages but instead write a new page to replace it logically in the file and unlink the original version releasing it to freespace. This results in files that are massively fragmented internally and, since databases rewrite the same pages many times a day, results in a serious increase in IO and disk bandwidth requirements. Also, journaled filesystem meta-data writes are NOT affected by O_SYNC or O_DIRECT, so they are still cached even though the database is forcing a data flush - yet another chance for file corruption. - see my Journaled Filesystem Rant in the July entry on my blog ( www.informix-myview.blogspot.com) for more details. - BTW, Linus says that EXT4 was "designed by idiots" and it is not safe (it writes out the meta-data indicating the new location of a modified page BEFORE it actually writes out the new version of the data resulting in a hole in the file if the system crashes). I don't know if the problems have been fixed recently, but caviat emptor. EXT3 with write-back enabled has similar safety problems (EXT4's write-back mode is the default and cannot be disabled - that's another main problem). Art Art S. Kagel Advanced DataTools (www.advancedatatools.com) IIUG Board of Directors (art (AT) iiug (DOT) org) Blog: http://informix-myview.blogspot.com/ Disclaimer: Please keep in mind that my own opinions are my own opinions and do not reflect on my employer, Advanced DataTools, the IIUG, nor any other organization with which I am associated either explicitly, implicitly, or by inference. Neither do those opinions reflect those of other individuals affiliated with any entity with which I am affiliated nor those of the entities themselves. |
#6
| |||
| |||
|
|
The developer of the Linux RAW module still maintains it and it is a viable option. However, following Linus Torvald's lead, Red Hat has deprecated RAW (as was already mentioned). Linus never wanted RAW devices included in Linux and has always opposed it on philosophical bases. This is from an email Linus sent on the subject in 1996 (before the RAW module was released): "The main reason there are no raw devices is that I personally think that raw devices are a stupid idea ...there are old-fashioned databases that think they can do a better job of it than the kernel does. They are usually wrong". Linus just doesn't get it and now he is on a campaign to eradicate RAW from all Linux releases. So far, AFAIK, he has only been successful in convincing RH to drop them, but you can get the module separately and include it yourself if you want. On using other options: - Block devices go through the cache unless DIRECT_IO is enabled. I do not know if DIRECT_IO works with block devices on Linux. They will not work together on AIX for example. - Filesystem files - - With DIRECT_IO enabled and KAIO configured correctly (so you have to tune the Linux KAIO resources) filesystems are about 5-8% slower than RAW on Linux. Without DIRECT_IO filessystem chunks are about 30-35% slower than RAW. - You should NEVER use ANY journaled filesystems for database chunks. That means no EXT3 or EXT4 filesystems on Linux, no ZFS on Linux or Solaris, only EXT2 filesystems should be used on Linux for database chunks. AIX's JFS2 (and the equivalent open source JFS filesystem) is less problematic since it only journals meta-data and not data pages. Fully journaling filesystems do not overwrite data pages but instead write a new page to replace it logically in the file and unlink the original version releasing it to freespace. This results in files that are massively fragmented internally and, since databases rewrite the same pages many times a day, results in a serious increase in IO and disk bandwidth requirements. Also, journaled filesystem meta-data writes are NOT affected by O_SYNC or O_DIRECT, so they are still cached even though the database is forcing a data flush - yet another chance for file corruption. - see my Journaled Filesystem Rant in the July entry on my blog ( www.informix-myview.blogspot.com) for more details. - BTW, Linus says that EXT4 was "designed by idiots" and it is not safe (it writes out the meta-data indicating the new location of a modified page BEFORE it actually writes out the new version of the data resulting in a hole in the file if the system crashes). I don't know if the problems have been fixed recently, but caviat emptor. EXT3 with write-back enabled has similar safety problems (EXT4's write-back mode is the default and cannot be disabled - that's another main problem). Art Art S. Kagel Advanced DataTools (www.advancedatatools.com) IIUG Board of Directors (art (AT) iiug (DOT) org) Blog: http://informix-myview.blogspot.com/ Disclaimer: Please keep in mind that my own opinions are my own opinions and do not reflect on my employer, Advanced DataTools, the IIUG, nor any other organization with which I am associated either explicitly, implicitly, or by inference. Neither do those opinions reflect those of other individuals affiliated with any entity with which I am affiliated nor those of the entities themselves. On Wed, Nov 10, 2010 at 6:45 AM, Fernando Nunes <domusonline (AT) gmail (DOT) com>wrote: On Tue, Nov 9, 2010 at 10:29 PM, Kennedy, Randy <RKennedy (AT) scottsdaleaz (DOT) gov wrote: We are moving from 9.4 on HP/UX 11.11 (physical/hard drives) to 11.1 on RHEL 5 (VMWare/SAN) and have a couple of questions about the raw storage setup. Please verify why you cannot go to 11.5 or even 11.7. 11.1 has support but it won't receive any new features. If you're having a lot of work to move, you might as well move to a more recent and feature rich version. I suppose you may be limited by some third party certification, but it would be a good idea to make some pressure... As for the raw devices, as somebody already mentioned, you could use standard filesystem (no journaling) files with DIRECT_IO. It isn't as efficient as raw devices.... Another option would be to use block devices (devices created with lvm (Linux Volume Manager?). I'm almost sure I found a site where this was explained, but I couldn't find it. The closest I get was this: http://www.informix-zone.com/node/38 But this article still talks about the "raw" command. Currently it's deprecated and it is not needed. You can use the block devices directly AFAIK. Regards. -- Fernando Nunes Portugal http://informix-technology.blogspot.com My email works... but I don't check it frequently... _______________________________________________ Informix-list mailing list Informix-list (AT) iiug (DOT) org http://www.iiug.org/mailman/listinfo/informix-list |
#7
| |||
| |||
|
|
Hi all, just let me add one additional hint: We use a few smallish instances on SuSeE and those use files sitting on separate filesystems (ext2) as chunks, and DIRECT_IO. When we mount the ext2 filesystems using -noatime mount option, then we do 33% less I/O seen from the OS perspective. I was not able to find out why the difference is a third of the I/O, as these instances tend to be read bound like 12:1 but it is reproduceable on SuSE 11.1, 11.2 and 11.3 in combination with IDS 11.50.FC7 dic_k Art Kagel schrieb: The developer of the Linux RAW module still maintains it and it is a viable option. However, following Linus Torvald's lead, Red Hat has deprecated RAW (as was already mentioned). Linus never wanted RAW devices included in Linux and has always opposed it on philosophical bases. This is from an email Linus sent on the subject in 1996 (before the RAW module was released): "The main reason there are no raw devices is that I personally think that raw devices are a stupid idea ...there are old-fashioned databases that think they can do a better job of it than the kernel does. They are usually wrong". Linus just doesn't get it and now he is on a campaign to eradicate RAW from all Linux releases. So far, AFAIK, he has only been successful in convincing RH to drop them, but you can get the module separately and include it yourself if you want. On using other options: - Block devices go through the cache unless DIRECT_IO is enabled. I do not know if DIRECT_IO works with block devices on Linux. They will not work together on AIX for example. - Filesystem files - - With DIRECT_IO enabled and KAIO configured correctly (so you have to tune the Linux KAIO resources) filesystems are about 5-8% slower than RAW on Linux. Without DIRECT_IO filessystem chunks are about 30-35% slower than RAW. - You should NEVER use ANY journaled filesystems for database chunks. That means no EXT3 or EXT4 filesystems on Linux, no ZFS on Linux or Solaris, only EXT2 filesystems should be used on Linux for database chunks. AIX's JFS2 (and the equivalent open source JFS filesystem) is less problematic since it only journals meta-data and not data pages. Fully journaling filesystems do not overwrite data pages but instead write a new page to replace it logically in the file and unlink the original version releasing it to freespace. This results in files that are massively fragmented internally and, since databases rewrite the same pages many times a day, results in a serious increase in IO and disk bandwidth requirements. Also, journaled filesystem meta-data writes are NOT affected by O_SYNC or O_DIRECT, so they are still cached even though the database is forcing a data flush - yet another chance for file corruption. - see my Journaled Filesystem Rant in the July entry on my blog ( www.informix-myview.blogspot.com) for more details. - BTW, Linus says that EXT4 was "designed by idiots" and it is not safe (it writes out the meta-data indicating the new location of a modified page BEFORE it actually writes out the new version of the data resulting in a hole in the file if the system crashes). I don't know if the problems have been fixed recently, but caviat emptor. EXT3 with write-back enabled has similar safety problems (EXT4's write-back mode is the default and cannot be disabled - that's another main problem). Art Art S. Kagel Advanced DataTools (www.advancedatatools.com) IIUG Board of Directors (art (AT) iiug (DOT) org) Blog: http://informix-myview.blogspot.com/ Disclaimer: Please keep in mind that my own opinions are my own opinions and do not reflect on my employer, Advanced DataTools, the IIUG, nor any other organization with which I am associated either explicitly, implicitly, or by inference. Neither do those opinions reflect those of other individuals affiliated with any entity with which I am affiliated nor those of the entities themselves. On Wed, Nov 10, 2010 at 6:45 AM, Fernando Nunes <domusonline (AT) gmail (DOT) com wrote: On Tue, Nov 9, 2010 at 10:29 PM, Kennedy, Randy RKennedy (AT) scottsdaleaz (DOT) gov wrote: We are moving from 9.4 on HP/UX 11.11 (physical/hard drives) to 11.1 on RHEL 5 (VMWare/SAN) and have a couple of questions about the raw storage setup. Please verify why you cannot go to 11.5 or even 11.7. 11.1 has support but it won't receive any new features. If you're having a lot of work to move, you might as well move to a more recent and feature rich version. I suppose you may be limited by some third party certification, but it would be a good idea to make some pressure... As for the raw devices, as somebody already mentioned, you could use standard filesystem (no journaling) files with DIRECT_IO. It isn't as efficient as raw devices.... Another option would be to use block devices (devices created with lvm (Linux Volume Manager?). I'm almost sure I found a site where this was explained, but I couldn't find it. The closest I get was this: http://www.informix-zone.com/node/38 But this article still talks about the "raw" command. Currently it's deprecated and it is not needed. You can use the block devices directly AFAIK. Regards. -- Fernando Nunes Portugal http://informix-technology.blogspot.com My email works... but I don't check it frequently... _______________________________________________ Informix-list mailing list Informix-list (AT) iiug (DOT) org http://www.iiug.org/mailman/listinfo/informix-list -- Richard Kofler SOLID STATE EDV Dienstleistungen GmbH Vienna/Austria/Europe _______________________________________________ Informix-list mailing list Informix-list (AT) iiug (DOT) org http://www.iiug.org/mailman/listinfo/informix-list |
#8
| |||
| |||
|
|
YES! * I just did a project on AIX and setting noaccess in the filesystem mount was a very big performance improvement. Art Art S. Kagel Advanced DataTools (www.advancedatatools.com) IIUG Board of Directors (a... (AT) iiug (DOT) org) Blog:http://informix-myview.blogspot.com/ Disclaimer: Please keep in mind that my own opinions are my own opinions and do not reflect on my employer, Advanced DataTools, the IIUG, nor any other organization with which I am associated either explicitly, implicitly, orby inference. *Neither do those opinions reflect those of other individuals affiliated with any entity with which I am affiliated nor those of the entities themselves. On Wed, Nov 10, 2010 at 2:27 PM, Richard Kofler <richard.kof... (AT) chello (DOT) at>wrote: Hi all, just let me add one additional hint: We use a few smallish instances on SuSeE and those use files sitting on separate filesystems (ext2) as chunks, and DIRECT_IO. When we mount the ext2 filesystems using -noatime mount option, *then we do 33% less I/O seen from the OS perspective. I was not able to find out why the difference is a third of the I/O, as these instances tend to be read bound like 12:1 but it is reproduceable on SuSE 11.1, 11.2 and 11.3 in combination with IDS 11.50.FC7 dic_k Art Kagel schrieb: The developer of the Linux RAW module still maintains it and it is a viable option. *However, following Linus Torvald's lead, Red Hat has deprecated RAW (as was already mentioned). *Linus never wanted RAW devices included in Linux and has always opposed it on philosophical bases. *This is from an email Linus sent on the subject in 1996 (before the RAW module was released): "The main reason there are no raw devices is that I personally think that raw devices are a stupid idea ...there are old-fashioned databases that think they can do a better job of it than the kernel does. They are usually wrong". *Linus just doesn't get it and now he is on a campaign to eradicate RAW from all Linux releases. *So far, AFAIK, he has only been successful in convincing RH to drop them, but you can get the module separately and include it yourself if you want. On using other options: * *- Block devices go through the cache unless DIRECT_IO is enabled. *I do * *not know if DIRECT_IO works with block devices on Linux. *They will not work * *together on AIX for example. * *- Filesystem files - * * * - With DIRECT_IO enabled and KAIO configured correctly (so you have to * * * tune the Linux KAIO resources) filesystems are about 5-8%slower than RAW on * * * Linux. *Without DIRECT_IO filessystem chunks are about 30-35% slower than * * * RAW. * * * - You should NEVER use ANY journaled filesystems for database chunks. * * * That means no EXT3 or EXT4 filesystems on Linux, no ZFS on Linux or Solaris, * * * only EXT2 filesystems should be used on Linux for database chunks. *AIX's * * * JFS2 (and the equivalent open source JFS filesystem) is less problematic * * * since it only journals meta-data and not data pages. *Fully journaling * * * filesystems do not overwrite data pages but instead writea new page to * * * replace it logically in the file and unlink the original version releasing * * * it to freespace. *This results in files that are massively fragmented * * * internally and, since databases rewrite the same pages many times a day, * * * results in a serious increase in IO and disk bandwidth requirements. *Also, * * * journaled filesystem meta-data writes are NOT affected byO_SYNC or * * * O_DIRECT, so they are still cached even though the database is forcing a * * * data flush - yet another chance for file corruption. - see my Journaled * * * Filesystem Rant in the July entry on my blog ( * * *www.informix-myview.blogspot.com) for more details. * * * - BTW, Linus says that EXT4 was "designed by idiots" and it is not * * * safe (it writes out the meta-data indicating the new location of a modified * * * page BEFORE it actually writes out the new version of thedata resulting in * * * a hole in the file if the system crashes). *I don't know if the problems * * * have been fixed recently, but caviat emptor. *EXT3 with write-back enabled * * * has similar safety problems (EXT4's write-back mode is the default and * * * cannot be disabled - that's another main problem). Art Art S. Kagel Advanced DataTools (www.advancedatatools.com) IIUG Board of Directors (a... (AT) iiug (DOT) org) Blog:http://informix-myview.blogspot.com/ Disclaimer: Please keep in mind that my own opinions are my own opinions and do not reflect on my employer, Advanced DataTools, the IIUG, nor any other organization with which I am associated either explicitly, implicitly, or by inference. *Neither do those opinions reflect those of other individuals affiliated with any entity with which I am affiliated nor those of the entities themselves. On Wed, Nov 10, 2010 at 6:45 AM, Fernando Nunes <domusonl... (AT) gmail (DOT) com wrote: On Tue, Nov 9, 2010 at 10:29 PM, Kennedy, Randy RKenn... (AT) scottsdaleaz (DOT) gov wrote: We are moving from 9.4 on HP/UX 11.11 (physical/hard drives) to 11.1 on RHEL 5 (VMWare/SAN) and have a couple of questions about the raw storage setup. Please verify why you cannot go to 11.5 or even 11.7. 11.1 has support but it won't receive any new features. If you're having a lot of work to move, you might as well move to a more recent and feature rich version. I suppose you may be limited by some third party certification, but it would be a good idea to make some pressure... As for the raw devices, as somebody already mentioned, you could use standard filesystem (no journaling) files with DIRECT_IO. It isn't as efficient as raw devices.... Another option would be to use block devices (devices created with lvm (Linux Volume Manager?). I'm almost sure I found a site where this was explained, but I couldn't find it. The closest I get was this: http://www.informix-zone.com/node/38 But this article still talks about the "raw" command. Currently it's deprecated and it is not needed. You can use the block devices directly AFAIK. Regards. -- Fernando Nunes Portugal http://informix-technology.blogspot.com My email works... but I don't check it frequently... _______________________________________________ Informix-list mailing list Informix-l... (AT) iiug (DOT) org http://www.iiug.org/mailman/listinfo/informix-list -- Richard Kofler SOLID STATE EDV Dienstleistungen GmbH Vienna/Austria/Europe _______________________________________________ Informix-list mailing list Informix-l... (AT) iiug (DOT) org http://www.iiug.org/mailman/listinfo/informix-list |
![]() |
| Thread Tools | |
| Display Modes | |
| |