You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 12, 2020. It is now read-only.
2.5gb ulimit embedded mserver: does not pass i=1800
> ulimit -v 2500000
> R
library(DBI)
library(MonetDBLite)
dbdir <- tempdir()
con <- dbConnect(MonetDBLite(), dbdir )
# 5,000 record tables, 100,000 times
for( i in seq( 100000 ) ) { cat( i , "\r\n" ) ; dbWriteTable( con , 'x' , mtcars[ rep( 1:10 , 500 ) , ] , append = TRUE ) }
# 1708
# 1709
# Error in .local(conn, name, value, ...) :
# Failed to insert data: MALException:embedded:Could not convert column 9 gear to type 9
# > traceback()
# 4: stop("Failed to insert data: ", insres)
# 3: .local(conn, name, value, ...)
# 2: dbWriteTable(con, "x", mtcars[rep(1:10, 500), ], append = TRUE)
# 1: dbWriteTable(con, "x", mtcars[rep(1:10, 500), ], append = TRUE) at #1
# >
# 1702
# 1703
# Error in .local(conn, statement, ...) :
# Unable to execute statement 'select schemas.name as sn, tables.name as tn from sys.tables join sys.schemas on tables.schema_id=sc...'.
# Server says 'GDKerror:!ERROR: GDKreallocmax: failed for 40016 bytes !ERROR: MT_mmap: mmap(/tmp/Rtmp5mtmJx/bat/05/40/54061.tail,65536) failed !OS: Cannot allocate memory !ERROR: GDKmallocmax: failed for 40000 bytes !ERROR: GDKmallocmax: failed for 40000 bytes !ERROR: HEAPextend: failed to extend to 40000 for 05/40/54061.tail: h->storage == STORE_MEM && can_map && fd >= 0 && HEAPload_intern() != GDK_SUCCEED !ERROR: GDKreallocmax: failed for 40016 bytes !ERROR: MT_mmap: mmap(/tmp/Rtmp5mtmJx/bat/05/40/54062.tail,65536) failed !OS: Cannot allocate memory !ERROR: GDKmallocmax: failed for 40000 bytes !ERROR: GDKmallocmax: failed for 40000 bytes !ERROR: HEAPextend: failed to extend to 40000 for 05/40/54062.tail: h->storage == STORE_MEM && can_map && fd >= 0 && HEAPload_intern() != GDK_SUCCEED '.
# >
# 1421
# 1422
# 1423
# 1424
# 1425
# 1426
# Error in .local(conn, statement, ...) :
# Unable to execute statement 'select schemas.name as sn, tables.name as tn from sys.tables join sys.schemas on tables.schema_id=sc...'.
# Server says 'GDKerror:!ERROR: MT_mremap: mremap(0x7f169cc80000,57016320,68419584) failed !OS: Cannot allocate memory !ERROR: HEAPextend: failed to extend to 68419584 for 03/346.tail: GDKmremap() failed '.
# > traceback()
# 14: stop("Unable to execute statement '", statement, "'.\nServer says '",
# env$message, "'.")
# 13: .local(conn, statement, ...)
# 12: dbSendQuery(conn, statement, ...)
# 11: dbSendQuery(conn, statement, ...)
# 10: dbGetQuery(conn, q)
# 9: dbGetQuery(conn, q)
# 8: .local(conn, ...)
# 7: dbListTables(conn, sys_tables = T)
# 6: dbListTables(conn, sys_tables = T)
# 5: dbExistsTable(conn, qname)
# 4: dbExistsTable(conn, qname)
# 3: .local(conn, name, value, ...)
# 2: dbWriteTable(con, "x", mtcars[rep(1:10, 500), ], append = TRUE)
# 1: dbWriteTable(con, "x", mtcars[rep(1:10, 500), ], append = TRUE) at #1
# >
random strangeness enforcing ulimit with library(ulimit) rather than ulimit -v
300mb embedded lite error
# out of memory (error, not crash)
library(DBI)
ulimit::memory_limit( 300 )
db <- dbConnect( MonetDBLite::MonetDBLite() )
for( i in seq( 1000 ) ) { cat( i , "\r\n" ) ; dbWriteTable( db , 'x' , mtcars , append = TRUE ) }
# Error in .local(conn, statement, ...) :
# Unable to execute statement 'select schemas.name as sn, tables.name as tn from sys.tables join sys.schemas on tables.schema_id=sc...'.
# Server says 'MALException:bat.new:GDK reported error. !ERROR: GDKmallocmax: failed for 10240 bytes !ERROR: GDKmallocmax: failed for 40 bytes !ERROR: GDKmallocmax: failed for 40 bytes !ERROR: HEAPalloc: Insufficient space for HEAP of 10240 bytes. '.
200mb embedded lite crash
# segfault (crash)
library(DBI)
ulimit::memory_limit( 200 )
db <- dbConnect( MonetDBLite::MonetDBLite() )
# *** caught segfault ***
# address 0x6498, cause 'memory not mapped'
# Traceback:
# 1: .Call("monetdb_startup_R", dir, quiet, getOption("monetdb.squential", sequential), PACKAGE = libfilename)
# 2: monetdb_embedded_startup(embedded, !getOption("monetdb.debug.embedded", FALSE), getOption("monetdb.sequential", FALSE))
# 3: .local(drv, ...)
# 4: dbConnect(MonetDBLite::MonetDBLite())
# 5: dbConnect(MonetDBLite::MonetDBLite())
# Possible actions:
# 1: abort (with core dump, if enabled)
# 2: normal R exit
# 3: exit R without saving workspace
# 4: exit R saving workspace
# Selection:
# Selection:
The text was updated successfully, but these errors were encountered:
ajdamico
changed the title
low memory embedded versus external mserver behavior
low RAM embedded vs external mserver behavior on mac and unix
Mar 4, 2017
ajdamico
changed the title
low RAM embedded vs external mserver behavior on mac and unix
low RAM embedded vs external mserver behavior on linux
Mar 4, 2017
@hannesmuehleisen is this what you expect to happen on linux? seems to make sense given your malloc() explanation. thanks
on rocks010
needed installs:
2.5gb ulimit external mserver. anything lower than that, mserver does not open
2.5gb ulimit embedded mserver: does not pass
i=1800
random strangeness enforcing
ulimit
withlibrary(ulimit)
rather thanulimit -v
300mb embedded lite error
200mb embedded lite crash
The text was updated successfully, but these errors were encountered: