Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

314
Visualizações
MongoDb Performance on Raspberry Pi 2

I have MongoDb running in a NodeJS app using Monk on a Raspberry Pi 2 with raspbian.

While it behaves properly, the database access is stunningly slow.

I habe roughly 1.7 million documents in one table. I call simple values (last record according to a timestamp) and little more complex (aggregate 30 values). The app writes 2 new entries per second (permantly, it's sort of logging). The client asks for some values, 1-3 per second.

The very simple takes roughly 8 seconds, the little more complex 20 seconds. It does not change over time. CPU is under load, 30 to 75% permanently, I serve just one (1) client via WiFi.

When the results return, the values are correct.

Version information:

  • MongoDb: v2.4.10
  • Monk: v3.1.3
  • Node: v6.3.1
  • OS: Raspbian GNU/Linux 8 (jessie)
  • Kernel: raspberrypi 4.4.11.-v7+

Question:

Is known that it's that slow on Raspberry 2 with > 1 mio records and 2-4 requests per second? Or is there something I could do?

The app is completely naive, very straight.

over 4 years ago · Santiago Trujillo
1 Respostas
Responde à pergunta

0

When you look at performance in a Raspberry PI you have to take care of two important limitation:

  1. RAM: you have only 1GB of RAM on model 2. In your use case maybe the DB index is paginated from SD card and RAM.
  2. SD: you don't have a full Sata interface like a normal desktop PC. Read and write from SD is a lot slower than any normal HD. You could try with a higher class SD card.

Said that we can't make any more precise analysis without the details of DB, query and program. What you can do is to use "top" or any similar command to show the usage of RAM, the CPU load and the IO from disk.

over 4 years ago · Santiago Trujillo Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda