Exemplo n.º 1
0
 def test_phedex_memory(self):
     "Test phedex data memory usage"
     print ""
     phedex = PhEDExService(self.config)
     api = 'blockreplicas'
     params = [('node', 'T2_*'), ('create_since', 0.0), ('complete', 'y'), ('group', 'AnalysisOps'), ('show_dataset', 'y')]
     phedex_data = phedex.fetch(api=api, params=params, cache=False)
     total_size = total_size_of(phedex_data)
     logger.info('Total size of PhEDEx data in memory is %d bytes (%dMB)', total_size, total_size/10**6)
Exemplo n.º 2
0
 def test_phedex_memory(self):
     "Test phedex data memory usage"
     print ""
     phedex = PhEDExService(self.config)
     api = 'blockreplicas'
     params = [('node', 'T2_*'), ('create_since', 0.0), ('complete', 'y'), ('group', 'AnalysisOps'), ('show_dataset', 'y')]
     phedex_data = phedex.fetch(api=api, params=params, cache=False)
     total_size = total_size_of(phedex_data)
     logger.info('Total size of PhEDEx data in memory is %d bytes (%dMB)', total_size, total_size/10**6)
Exemplo n.º 3
0
 def test_pop_db_memory(self):
     "Test pop_db data memory usage"
     print ""
     pop_db = PopDBService(self.config)
     api = 'getDSdata'
     sitename = 'summary'
     aggr = 'day'
     n = 200000
     orderby = 'totcpu'
     tstart = datetime_to_string(datetime_day(datetime.datetime.utcnow() - datetime.timedelta(days=10)))
     tstop = datetime_to_string(datetime_day(datetime.datetime.utcnow()))
     params = {'sitename':sitename, 'tstart':tstart, 'tstop':tstop, 'aggr':aggr, 'n':n, 'orderby':orderby}
     pop_db_data = pop_db.fetch(api=api, params=params, cache=False)
     total_size = total_size_of(pop_db_data)
     logger.info('Total size of Pop DB data in memory is %d bytes (%dMB)', total_size, total_size/10**6)
Exemplo n.º 4
0
 def test_pop_db_memory(self):
     "Test pop_db data memory usage"
     print ""
     pop_db = PopDBService(self.config)
     api = 'getDSdata'
     sitename = 'summary'
     aggr = 'day'
     n = 200000
     orderby = 'totcpu'
     tstart = datetime_to_string(datetime_day(datetime.datetime.utcnow() - datetime.timedelta(days=10)))
     tstop = datetime_to_string(datetime_day(datetime.datetime.utcnow()))
     params = {'sitename':sitename, 'tstart':tstart, 'tstop':tstop, 'aggr':aggr, 'n':n, 'orderby':orderby}
     pop_db_data = pop_db.fetch(api=api, params=params, cache=False)
     total_size = total_size_of(pop_db_data)
     logger.info('Total size of Pop DB data in memory is %d bytes (%dMB)', total_size, total_size/10**6)