<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://petersap.nl/SybaseWiki/index.php?action=history&amp;feed=atom&amp;title=ASE_Cache_stalls</id>
		<title>ASE Cache stalls - Revision history</title>
		<link rel="self" type="application/atom+xml" href="http://petersap.nl/SybaseWiki/index.php?action=history&amp;feed=atom&amp;title=ASE_Cache_stalls"/>
		<link rel="alternate" type="text/html" href="http://petersap.nl/SybaseWiki/index.php?title=ASE_Cache_stalls&amp;action=history"/>
		<updated>2026-04-04T20:48:28Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.24.2</generator>

	<entry>
		<id>http://petersap.nl/SybaseWiki/index.php?title=ASE_Cache_stalls&amp;diff=1957&amp;oldid=prev</id>
		<title>Psap at 07:46, 12 March 2013</title>
		<link rel="alternate" type="text/html" href="http://petersap.nl/SybaseWiki/index.php?title=ASE_Cache_stalls&amp;diff=1957&amp;oldid=prev"/>
				<updated>2013-03-12T07:46:18Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;tr style='vertical-align: top;'&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Revision as of 07:46, 12 March 2013&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 59:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 59:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;But beware, a cache can be marked to be ignored by the housekeeper, as is the case in the example above. To configure such a state, add a line &amp;quot;cache status = HK ignore cache&amp;quot; to the ASE configuration file.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;But beware, a cache can be marked to be ignored by the housekeeper, as is the case in the example above. To configure such a state, add a line &amp;quot;cache status = HK ignore cache&amp;quot; to the ASE configuration file.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[category:ASE]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key website-mw_:diff:version:1.11a:oldid:1954:newid:1957 --&gt;
&lt;/table&gt;</summary>
		<author><name>Psap</name></author>	</entry>

	<entry>
		<id>http://petersap.nl/SybaseWiki/index.php?title=ASE_Cache_stalls&amp;diff=1954&amp;oldid=prev</id>
		<title>Psap: Created page with 'A cache stall in Sybase ASE may occur when a read from disk has to wait for a write to complete so that it can reuse the buffer. The page that needs to be written to disk has pas…'</title>
		<link rel="alternate" type="text/html" href="http://petersap.nl/SybaseWiki/index.php?title=ASE_Cache_stalls&amp;diff=1954&amp;oldid=prev"/>
				<updated>2013-02-10T16:50:04Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;#039;A cache stall in Sybase ASE may occur when a read from disk has to wait for a write to complete so that it can reuse the buffer. The page that needs to be written to disk has pas…&amp;#039;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;A cache stall in Sybase ASE may occur when a read from disk has to wait for a write to complete so that it can reuse the buffer. The page that needs to be written to disk has passed the wash marker in the cache and is scheduled to be written asynchronously to disk. The tasks in ASE dealing with that are the housekeeper and the checkpoint process.&lt;br /&gt;
&lt;br /&gt;
When a stall occurs the process that requires the data to be read, just has to wait until the preceding writes are completed. Obviously, this is not good for performance.&lt;br /&gt;
&lt;br /&gt;
Here is a simple query to see if your system is suffering from stalls:&lt;br /&gt;
&lt;br /&gt;
 select CacheName,&lt;br /&gt;
        convert(char(3),IOBufferSize / 1024) + &amp;quot;Kb&amp;quot; as &amp;quot;IO Size&amp;quot;,&lt;br /&gt;
        Stalls&lt;br /&gt;
        from    master..monCachePool&lt;br /&gt;
        where   Stalls &amp;gt; 0&lt;br /&gt;
        order   by CacheName, IOBufferSize&lt;br /&gt;
&lt;br /&gt;
Sample output&lt;br /&gt;
&lt;br /&gt;
 CacheName                      IO Size Stalls     &lt;br /&gt;
 ------------------------------ ------- -----------&lt;br /&gt;
 tempdb cache                   8  Kb            92&lt;br /&gt;
 tempdb cache                   64 Kb            15&lt;br /&gt;
  &lt;br /&gt;
 (2 rows affected)&lt;br /&gt;
&lt;br /&gt;
==Potential solutions==&lt;br /&gt;
===Increase the wash size===&lt;br /&gt;
By increasing the wash size of a pool within a cache, the modified page will be triggered at an earlier stage to be written to disk. To see the definition of a cache run sp_cacheconfig followed by the name of the cache.&lt;br /&gt;
&lt;br /&gt;
 sp_cacheconfig &amp;quot;tempdb cache&amp;quot;&lt;br /&gt;
 go&lt;br /&gt;
&lt;br /&gt;
Sample output&lt;br /&gt;
&lt;br /&gt;
 Cache Name   Status   Type             Config Value   Run Value   &lt;br /&gt;
 ------------ -------- ---------------- -------------- ------------&lt;br /&gt;
 tempdb cache Active   Mixed, HK Ignore  51200.00 Mb    51200.00 Mb&lt;br /&gt;
                                       ------------ ------------&lt;br /&gt;
                       Total    51200.0 Mb   51200.0 Mb  &lt;br /&gt;
 ==========================================================================&lt;br /&gt;
 Cache: tempdb cache,   Status: Active,   Type: Mixed, HK Ignore&lt;br /&gt;
       Config Size: 51200.00 Mb,   Run Size: 51200.00 Mb&lt;br /&gt;
       Config Replacement: relaxed LRU,   Run Replacement: relaxed LRU&lt;br /&gt;
       Config Partition:           64,   Run Partition:           64&lt;br /&gt;
  IO Size  Wash Size     Config Size  Run Size     APF Percent&lt;br /&gt;
  -------- ------------- ------------ ------------ -----------&lt;br /&gt;
      8 Kb    3932160 Kb      0.00 Mb  25300.00 Mb     15     &lt;br /&gt;
     16 Kb      61440 Kb    300.00 Mb    300.00 Mb     15     &lt;br /&gt;
     64 Kb    3932160 Kb  25600.00 Mb  25600.00 Mb     15     &lt;br /&gt;
 (return status = 0)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The washsize can be increased by running sp_poolconfig as in this example:&lt;br /&gt;
&lt;br /&gt;
 sp_poolconfig &amp;quot;tempdb cache&amp;quot;, &amp;quot;8K&amp;quot;, &amp;quot;wash_size=5G&amp;quot;&lt;br /&gt;
 go&lt;br /&gt;
&lt;br /&gt;
The configuration change is immediate and no reboot is required. Do not make the wash area to big as it may be counterproductive.&lt;br /&gt;
&lt;br /&gt;
===Tuning the housekeeper or checkpoint process===&lt;br /&gt;
Alternatively, you may need to tune the housekeeper or the checkpoint process. There is a good document for this here: http://www.sybase.com/files/White_Papers/Managing-DBMS-Workloads-v1.0-WP.pdf&lt;br /&gt;
&lt;br /&gt;
But beware, a cache can be marked to be ignored by the housekeeper, as is the case in the example above. To configure such a state, add a line &amp;quot;cache status = HK ignore cache&amp;quot; to the ASE configuration file.&lt;/div&gt;</summary>
		<author><name>Psap</name></author>	</entry>

	</feed>