martes, febrero 22, 2011

The memory cache on windows eat all the RAM

SYMPTOMS
You experience performance issues in applications and services in various versions of Windows XP, of Windows Vista, of Windows Server 2003, and of Windows Server 2008. Additionally, you notice the following symptoms:
Available memory is almost exhausted.
The system file cache consumes most of the physical RAM.
There is a continuous and high volume of cached read requests to the hard disk.
Back to the top
CAUSE
Memory management in Microsoft Windows operating systems uses a demand-based algorithm. If any process requests and uses a large amount of memory, the size of the working set (the number of memory pages in the physical RAM) of the process increases. If these requests are continuous and unchecked, the working set of the process will grow to consume all the physical RAM. In this situation, the working sets for all the other processes are paged out to the hard disk. This behavior decreases the performance of applications and services because the memory pages are continuously written to the hard disk and read from the hard disk.

This behavior also applies to the working set of the system file cache. If there is a continuous and high volume of cached read requests from any process or from any driver, the working set size of the system file cache will grow to meet this demand. The system file cache consumes the physical RAM. Therefore, sufficient amounts of physical RAM are not available for other processes.

On 32-bit versions of Microsoft Windows operating systems earlier than Windows Vista, the working sets of the system file cache have a theoretical memory limit of less than1 GB. The limitation of the virtual address range prevents the working sets of the system file cache from exhausting the physical RAM.

On 32-bit versions of Windows Vista operating systems, kernel resources are allocated dynamically. The working set of the system file cache increases to consume the virtual address range of the kernel mode at the expense of other kernel resources. The limitation of this memory range is less than 2 GB. If the computer has more than 2 GB of physical RAM, the cache cannot exhaust all the physical RAM. However, the cache can exhaust the virtual address space in the kernel. This can cause allocation failures for other kernel components.

On 64-bit versions of Windows operating systems, the size of the virtual address range is typically larger than the physical RAM. In this situation, the working set for the system file cache can increase to consume most of the physical RAM.
Back to the top
WORKAROUND
To work around this issue, use the GetSystemFileCacheSize API function and the SetSystemFileCacheSize API function to set the maximum or minimum size value for the working sets of the system file cache. The use of these functions is the only supported method to restrict the consumption of physical memory by the system file cache.

The Microsoft Windows Dynamic Cache Service is a sample service that demonstrates one strategy to use these APIs to minimize the effects of this issue.

Installing and using the Microsoft Dynamic Cache Service does not cause the exclusion of support for Microsoft Windows. This service and its source code are provided as an example of how to use the Microsoft supported APIs to reduce the growth of the file system cache.

The service and source code can be downloaded from the following link in the Microsoft Web site:
http://www.microsoft.com/downloads/details.aspx?FamilyID=e24ade0a-5efe-43c8-b9c3-5d0ecb2f39af&displaylang=en

miércoles, febrero 16, 2011

Discurso Álex de la Iglesia

El día de hoy ha llegado porque hace 25 años, doce profesionales de nuestro cine, en medio de una crisis tan grave como la nuestra, caminaron juntos a pesar de sus diferencias. Quiero empezar este discurso felicitando a los fundadores de la Academia.

No sólo ellos, sino todos los que me han precedido en esta institución, vicepresidentes, miembros de las juntas directivas y el conjunto de los académicos, nos han traído esta noche aquí, al Teatro Real, para celebrar el 25 aniversario de la Academia de las Artes y las Ciencias Cinematográficas y la existencia misma de los premios Goya. A todos, muchísimas gracias. Puede parecer que llegamos a este día separados, con puntos de vista diferentes en temas fundamentales. Es el resultado de la lucha de cada uno por sus convicciones. Y nada más. Porque en realidad, todos estamos en lo mismo, que es la defensa del cine.

Quiero por ello felicitar y agradecer a todos los que estáis aquí, por caminar juntos en la diferencia, y hasta en la divergencia. Hacemos mucho ruido, pero es que esta vez, hay muchas nueces. El choque de posturas es siempre aparatoso y tras él surge una nube de humo que impide ver con claridad. Pero la discusión no es en vano, no es frívola y no es precipitada. No podemos olvidar lo más importante, el meollo del asunto. Somos parte de un Todo y no somos nadie sin ese todo. Una película no es película hasta que alguien se sienta delante y la ve. La esencia del cine se define por dos conceptos: una pantalla, y una gente que la disfruta. Sin público esto no tiene sentido. No podemos olvidar eso jamás.

Dicen que he provocado una crisis. Crisis, en griego, significa “cambio” y el cambio es acción. Estamos en un punto de no retorno y es el momento de actuar. No hay marcha atrás. De las decisiones que se tomen ahora dependerá todo. Nada de lo que valía antes, vale ya. Las reglas del juego han cambiado. Hace 25 años, quienes se dedicaban a nuestro oficio jamás hubieran imaginado que algo llamado internet revolucionaría el mercado del cine de esta forma y que el que se vieran o no nuestras películas no iba a ser sólo cuestión de llevar al público a las salas. Intenet no es el futuro, como algunos creen. Internet es el presente. Internet es la manera de comunicarse, de compartir información, entretenimiento y cultura que utilizan cientos de millones de personas. Internet es parte de nuestras vidas y la nueva ventana que nos abre la mente al mundo.

A los internautas no les gusta que les llamen así. Ellos son ciudadanos, son sencillamente gente, son nuestro público. Ese público que hemos perdido, no va al cine porque está delante de una pantalla de ordenador. Quiero decir claramente que no tenemos miedo a internet, porque internet es, precisamente, la salvación de nuestro cine. Sólo ganaremos al futuro si somos nosotros los que cambiamos, los que innovamos, adelantándonos con propuestas imaginativas, creativas, aportando un nuevo modelo de mercado que tenga en cuenta a todos los implicados: Autores, productores, distribuidores, exhibidores, páginas web, servidores, y usuarios.

Se necesita una crisis, un cambio, para poder avanzar hacia un nueva manera de entender el negocio del cine. Tenemos que pensar en nuestros derechos, por supuesto, pero no olvidar nunca nuestras obligaciones. Tenemos una responsabilidad moral para con el público. No se nos puede olvidar algo esencial: hacemos cine porque los ciudadanos nos permiten hacerlo, y les debemos respeto, y agradecimiento. Las películas de las que hablamos esta noche son la prueba de que en este país nos dejamos la piel trabajando. Sin embargo, el mismo esfuerzo o mayor hicieron tantas otras películas que no han llegado a los sobres de las candidaturas. Ellos tambien se merecen estar aqui, porque han trabajado igual de duro que nosotros.

Quiero despedirme en mi última gala como presidente, recordando a todos los candidatos a los Goya tan solo una cosa: qué más da ganar o perder si podemos hacer cine, trabajar en lo que más nos gusta. No hay nada mejor que sentirse libre creando, y compartir esa alegría con los demás. Somos cineastas, contamos historias, creamos mundos para que el espectador viva en ellos. Somos más de 30.000 personas que tienen la inmensa suerte de vivir fabricando sueños.

Tenemos que estar a la altura del privilegio que la sociedad nos ofrece. Yo creo, con toda humildad, que si queremos que nos respeten, hay que respetar primero.

Y por último, me gustaría contarle algo al próximo Presidente de la Academia, que ya me cae bien, sea quien sea: estos han sido los dos años más felices de mi vida. He conocido gente maravillosa de todos los sectores de la industria. He visto los problemas desde puntos de vista nuevos para mí, lo que me ha enriquecido y me ha hecho mejor de lo que era. He comprobado que trabajar para los demás es una experiencia extraordinaria por muy duro que resulte en un principio, y sobre todo: han pasado 25 años muy buenos, pero nos quedan muchos más, y seguro que serán mejores.