Blocked cache rmem checks in windows until we have figured out some other way to check this.
This commit is contained in:
parent
aba6f947fa
commit
46781d3ee1
2 changed files with 7 additions and 0 deletions
|
|
@ -418,6 +418,10 @@ def conditional_flush(max_rmem, force=False):
|
||||||
"once in %s min interval. Check memory usage." % (AUTO_FLUSH_MIN_INTERVAL/60.0))
|
"once in %s min interval. Check memory usage." % (AUTO_FLUSH_MIN_INTERVAL/60.0))
|
||||||
return
|
return
|
||||||
|
|
||||||
|
if os.name == "nt":
|
||||||
|
# we can't look for mem info in Windows at the moment
|
||||||
|
return
|
||||||
|
|
||||||
# check actual memory usage
|
# check actual memory usage
|
||||||
Ncache_max = mem2cachesize(max_rmem)
|
Ncache_max = mem2cachesize(max_rmem)
|
||||||
Ncache, _ = cache_size()
|
Ncache, _ = cache_size()
|
||||||
|
|
|
||||||
|
|
@ -274,6 +274,9 @@ def datetime_format(dtobj):
|
||||||
def host_os_is(osname):
|
def host_os_is(osname):
|
||||||
"""
|
"""
|
||||||
Check to see if the host OS matches the query.
|
Check to see if the host OS matches the query.
|
||||||
|
Common osnames are
|
||||||
|
posix
|
||||||
|
nt
|
||||||
"""
|
"""
|
||||||
if os.name == osname:
|
if os.name == osname:
|
||||||
return True
|
return True
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue