Tuesday, October 25, 2011

Huge Pages & Exadata

I decied to use Huge Pages in our Exadata and just opened /etc/sysctl.conf with vi but …

... vm.nr_hugepages was commented :
# bug 8268393 remove vm.nr_hugepages = 2048

I Пришлось пойти на металинк. Нота относится к Экзадате на НР:
Вот о чем речь:
-----------------------------------------------------
Disable Hugepages on the Database Servers
The current database image allocates 4G of hugepages that in many cases do not get used for various reasons. Some common examples of why the hugepages aren't used are:
  • Allocation requested at SGA creation time is larger than the hugepage config
  • Automatic Memory Management is being used which cannot leverage hugepages
  • The oracle user cannot lock the requested amount of memory because the memlock limit is either not specified or under-configured in /etc/security/limits.conf
Considering these issues, and the lack of benefit for a Data Warehouse environment, it is recommended that hugepages be disabled on the database servers.
Please note that hugepages should   NEVER   be disabled on the Exadata cells.
Bug 8268393 has been filed to make this change permanent in the database side image, and includes steps to do this manually in the work-around section.
-----------------------------------------------------

В общем:
-  упреки от пользователей, нежелающих разобраться почему не стартует их БД +
- несовместимость  АММ с большими страницами
заставили Оракл отказаться от этого функционала и Оракл даже специально оформил якобы баг, чтобы запретить большие страницы на Экзадате.

Жалко, это очень полезный функционал. Особенно для больших систем.

В чем-то Оракл здесь неправ. Большие страницы приносят свою пользу в больших системах.
В общем, если включить HugePages, то ошибок не будет.

Monday, October 24, 2011

Single point of failure

Ф-Центр сообщает:
-----------------------------------
От наводнения в Таиланде пострадала компания Nidec - производство моторов для вращения дисков и подшипников для моторов (70 % - 80 % всех двигателей для HDD). И это уже не говоря о производстве подшипников, которое там чуть ли не стопроцентное.

Если потоп продолжится и будет набирать силу, уже через месяц индустрию производства ПК может поразить убийственный дефицит накопителей. Инвентарные запасы у производителей ноутбуков не превышают четырёх недель, а чаще — две-три недели. Если встанет Nidec — встанет всё. Зато какая открывается перспектива для флэш-винчестеров !
--------------------------------

Если диски станут дорогими, то какой спрос возникнет на НСС-компрессию !



http://money.msn.com/business-news/article.aspx?feed=PZ&Date=20111021&ID=14419145

Friday, October 21, 2011

Exadata Flash Cache contains only ONE copy of database block

There is only copy of database block in flash cache in all Exadata because the reading occurs only from 1st mirror in ASM. There is no doubling data in the flash cache so no waste of FC-space occurs.

HCC

Thanks to Tanel:

QUERY LOW - uses the LZO compression algorithm. Fastest.
QUERY HIGH - uses the ZLIB (gzip) compression algorithm.
ARCHIVE LOW - uses the ZLIB (gzip) compression algorithm, but at a higher compression level than QUERY HIGH.
ARCHIVE HIGH - uses Bzip2 compression. This is the highest level of compression available but is  most CPU-intensive.

Monday, October 17, 2011

11.2.0.3 New Features

Следуем простому старому правилу: 1 час каждый рабочий день посвящать чтению документации. Сегодня:
http://download.oracle.com/docs/cd/E11882_01/server.112/e22487/chapter1_11203.htm

Итак, что мы видим в новых возможностях 11.2.0.3?

- Support Hybrid Columnar Compression on Pillar Axiom and Sun ZFSSA - гибридно-столбцевая компрессия широко шагает по планете и теперь поддерживается на новых железках. Но для этого нужно стаивить 11.2.0.3.


- В своих тренингах по Экзадате я уже рассказывал, что процессоры Intel Xeon 5600 и выше (которые используются в Экзадате) - это революция, по сравнению с 5500 и предыдущими. В частности, они оснащены аппаратным модулем шифрования. А аппаратное шифрование на порядок быстрее программного. И есть ноты, которые подтверждают, что Оракл 11.2 использует это самое аппаратное шифрование. В новых ядрах Т4 тоже была расширена аппаратная криптография и СУБД Oracle ее использует:

" 3.1.3 TDE Hardware Acceleration for Solaris
Transparent Data Encryption (TDE) can automatically detect whether the database host machine includes specialized cryptographic silicon that accelerates the encryption or decryption processing. When detected, TDE uses the specialized silicon for cryptographic processing accelerating the overall cryptographic performance significantly.
In prior releases, cryptographic hardware acceleration for TDE was only available on Intel Xeon, and only for Linux. With release 11.2.0.3 and later releases, it works with the current versions of Solaris 11 running on both SPARC T-Series and Intel Xeon.
"


Monday, October 10, 2011

Friday, October 7, 2011

Does DEALLOCATE UNUSED or SHRINK SPACE will free space occupied by LOB segment?

Lets check how it works. My env is DB 19.20@Linux-x64 1) I created the table with 4 LOB columns of 4 different LOB types: BASICFILE BLOB, BA...