"Mark A" <ma@switchboard.net> writes:
"zebi" <ze**@titi.org> wrote in message news:bm**********@news.tiscali.fr... hello,
What's your opinion :
The best type of temporary tablespace (DB2V7.2 SP 7 in AIX 4.3 /
multiprocessor ) is DMS ou SMS ?
Thanks
ZEB
Best is DMS, but make absolutely sure it is plenty large enough. Several
times the size of the largest table is not unreasonable. Try to create
multiple containers, each on different disk drives or different disk arrays.
Without knowing about the application, it is not possible to say which
is best, actually. The advantage of SMS tablespaces are that the
OS allocates disk space to them as needed, so you won't have to
administer the tablespace much as long as you don't run out of
disk space on the server. But Windows and Unix use indexed allocation
of disk blocks to files, which scatters the disk blocks of a file
all over the disk. In a database, this leads to more time to service
disk I/O requests because of more seek time-- this is especially
true for tables where sequential scans and index scans with clustered
indexes are running. When scanning sequentially, you get better performance
if the disk blocks where the tuples are stored are contiguous on the
disk. Since the operating system allocation of disk blocks to files
is not continguous with Unix or Windows, it is customary for a relational
DBMS to create tablespaces with large chunks of contiguous storage,
and manage the allocation of disk space out of these predefined
containers. Better designed systems support extents to the space
so that the system can find space when the original allocation
is fully utilized. But these types of tablespaces require more
administration.
So, the short answer is that DMS tablespaces perform better but
require more sysadmin work to keep them working and to keep them
organized for performance. SMS tablespaces require less administrative
work, but don't perform as well. If your application will perform
adequately with SMS temporary tablespaces and you don't have
gobs of free disk space just to make the temporary space huge,
then SMS is a fine choice. If performance is an issue, you'll want
DMS, and if you have lots of disk space, you can, as Mark noted,
make them quite large to minimize administrative overhead.
Cheers,
Joseph