Skip to content
Snippets Groups Projects
  1. Jul 05, 2011
  2. Jul 01, 2011
    • Iustin Pop's avatar
      One Haskell and integer sizes fix · 7034694d
      Iustin Pop authored
      
      Haskell has two main integer types:
      
      - Int, which is a native-type, and is guaranteed to have at least
        [-2²⁹, 2²⁹-1] range; on 64-bit platforms, it has much higher range
      - Integer, which is a software type (implemented using libgmp), and
        thus unbounded
      
      For performance reasons, the node/instance properties use Int for
      their attributes (and Double for some, but that's another story). This
      is all fine and doesn't cause problems. However, the CStats type which
      holds the overall cluster resources starts to fail when we analyse
      clusters with more than around 400 nodes and big memory/disk sizes on
      32 bit platforms.
      
      The simple fix would be to restrict cluster sizes, but that's no
      nice. I've benchmarked and changing to Integer doesn't show a visible
      slowdown on 64-bit platforms (as far as I can read on the internets,
      GHC knows to optimise Integer and only use software types when the
      values are large enough), and it also fixes the 32-bit problem. So
      this patch changes the CStats types to Integer, except for the
      instance count (which I don't expect to overflow 2²⁹ anytime soon).
      
      Signed-off-by: default avatarIustin Pop <iustin@google.com>
      Reviewed-by: default avatarGuido Trotter <ultrotter@google.com>
      7034694d
    • Iustin Pop's avatar
      Fix cluster verify for empty node groups · d748d9a7
      Iustin Pop authored
      
      There were some implicit assertions in the code that all node groups
      have nodes, which is not necessarily true.
      
      Additionally, the patch does a wrapping change.
      
      Signed-off-by: default avatarIustin Pop <iustin@google.com>
      Reviewed-by: default avatarRené Nussbaumer <rn@google.com>
      d748d9a7
    • Iustin Pop's avatar
      Fix a typo and punctuation in iallocator.rst · 1e98bac2
      Iustin Pop authored
      
      Beside the 'dscription' typo, also make the punctuation more
      consistent.
      
      Signed-off-by: default avatarIustin Pop <iustin@google.com>
      Reviewed-by: default avatarGuido Trotter <ultrotter@google.com>
      1e98bac2
  3. Jun 28, 2011
  4. Jun 24, 2011
  5. Jun 23, 2011
  6. Jun 22, 2011
  7. Jun 17, 2011
  8. Jun 15, 2011
  9. Jun 14, 2011
Loading