Re: [discuss] memrlimit - potential applications that can use

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Balbir Singh
Date: Wednesday, August 20, 2008 - 1:26 am

Dave Hansen wrote:

I guess the application needs to know how much of the resources it can consume.


Yes, an application does know it's memory footprint, but does it know how it is
supposed to consume resources in the system. Consider a linear algebra package
trying to do a multiplication of 1 million x 1 million rows. Depending on how
much resources it is allowed to consume, it could do so in one shot or if there
was a restriction, it could multiply smaller matrices and then collate results.
The application wants to stretch itself (memory footprint) for performance, but
at the same time does not want to get killed because

1. Other applications came in and caused an OOM
2. It stretched itself too much beyond what the system can support


No it is not a kernel BUG, agreed that the database is using a lot of memory,
but how can it predict what else will run on the system. Why is it bad for a
database for the sake of data integrity to ensure that it does not get OOM
killed and thus make sure memory is never overcommitted. Yes, you need
performance, so the application expands it's footprint, but at the same time,
the stretching should not cause it to be killed. How would you propose to solve
the problem without overcommit control?


Please see my comment on this in the paragraph above


I am all ears to better ways of doing it. Are you suggesting that overcommit was
added even though we don't actually need it?

-- 
	Balbir
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[discuss] memrlimit - potential applications that can use, Balbir Singh, (Tue Aug 19, 12:18 am)
Re: [discuss] memrlimit - potential applications that can use, Balbir Singh, (Wed Aug 20, 1:26 am)
Re: [discuss] memrlimit - potential applications that can use, KAMEZAWA Hiroyuki, (Thu Aug 21, 12:43 am)
Re: [discuss] memrlimit - potential applications that can use, KAMEZAWA Hiroyuki, (Thu Aug 21, 3:59 am)