Specify the Page Size

Page size and buffer cache size affect memory use and disk I/O throughput for the database.

Note:

The page size cannot be changed and determines the upper size limit on some database objects and whether LOB features can be used.

Page Size

Sybase IQ swaps data in and out of memory in units of pages. When you create a database, you specify a separate page size for the catalog store and the IQ store. The temporary store has the same page size as the IQ store.

Page size for the catalog store has no real impact on performance. The default value of 4096 bytes should be adequate. The IQ page size determines two other performance factors, the default I/O transfer block size, and the maximum data compression for your database.

Block Size

All I/O occurs in units of blocks. The size of these blocks is set when you create a Sybase IQ database; you cannot change it without recreating the database. By default, the IQ page size determines the I/O transfer block size. For example, the default IQ page size of 128KB results in a default block size of 8192 bytes. In general, Sybase IQ uses this ratio of default block size to page size, but it considers other factors also.

The default block size should result in an optimal balance of I/O transfer rate and disk space usage for most systems. It does favor saving space over performance, however. If the default block size does not work well for you, you can set it to any power of two between 4096 and 32,768, subject to the constraints that there can be no fewer than two and no more than 16 blocks in a page. You may want to set the block size explicitly in certain cases:
  • For a raw disk installation that uses a disk array, larger blocks may give better performance at the expense of disk space.

  • For a file system installation, to optimize performance over disk space, the IQ block size should be greater than or equal to the operating system's native block size, if there is one. You may get better I/O rates if your IQ block size matches your file system’s block size.

Data Compression

Sybase IQ compresses all data. The amount of compression is determined on the IQ page size.

Saving Memory

If your machine does not have enough memory, decrease the buffer cache sizes. Decreasing the buffer caches too much, however, can make your data loads or queries inefficient or incomplete due to insufficient buffers.

Related concepts
Paging Increases Available Memory
Utilities to Monitor Swapping
Server Memory
Manage Buffer Caches
Determine the Sizes of the Buffer Caches
Set the Buffer Cache Sizes
Optimize for Large Numbers of Users
Platform-Specific Memory Options