You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hbase.apache.org by "Erik Holstad (JIRA)" <ji...@apache.org> on 2009/06/22 18:52:07 UTC

[jira] Created: (HBASE-1562) How to handle the setting of 32 bit versus 64 bit machines

How to handle the setting of 32 bit versus 64 bit machines
----------------------------------------------------------

                 Key: HBASE-1562
                 URL: https://issues.apache.org/jira/browse/HBASE-1562
             Project: Hadoop HBase
          Issue Type: Bug
    Affects Versions: 0.20.0
            Reporter: Erik Holstad
            Assignee: Erik Holstad
             Fix For: 0.20.0


After adding the tests to verify the correctness of the HeapSize calculations the question of where to set the type of machines that are in the cluster arose.
I would think that most people are using 64 bit machines but we still need to support the use of 32 bit. So the way I see it we can solve this problem in two ways,
we can either have a settable parameter the the user sets when starting up the cluster or we can try to figure it out ourselves. I think that the second solution would
be the best, to make it as easy as possible on the user. 
That means that we need to add extra sizes to HeapSize and maybe even to Bytes.

Thoughts, comments?

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (HBASE-1562) How to handle the setting of 32 bit versus 64 bit machines

Posted by "stack (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HBASE-1562?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12722683#action_12722683 ] 

stack commented on HBASE-1562:
------------------------------

Hudson looks like its 64bit solaris:

{code}
Last login: Fri Mar 20 11:52:10 2009 from 63.203.238.117
Sun Microsystems Inc.   SunOS 5.10      Generic January 2005
-bash-3.00$ isainfo -kv
64-bit amd64 kernel modules
{code}

> How to handle the setting of 32 bit versus 64 bit machines
> ----------------------------------------------------------
>
>                 Key: HBASE-1562
>                 URL: https://issues.apache.org/jira/browse/HBASE-1562
>             Project: Hadoop HBase
>          Issue Type: Bug
>    Affects Versions: 0.20.0
>            Reporter: Erik Holstad
>            Assignee: Erik Holstad
>             Fix For: 0.20.0
>
>
> After adding the tests to verify the correctness of the HeapSize calculations the question of where to set the type of machines that are in the cluster arose.
> I would think that most people are using 64 bit machines but we still need to support the use of 32 bit. So the way I see it we can solve this problem in two ways,
> we can either have a settable parameter the the user sets when starting up the cluster or we can try to figure it out ourselves. I think that the second solution would
> be the best, to make it as easy as possible on the user. 
> That means that we need to add extra sizes to HeapSize and maybe even to Bytes.
> Thoughts, comments?

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (HBASE-1562) How to handle the setting of 32 bit versus 64 bit machines

Posted by "Jonathan Gray (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HBASE-1562?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jonathan Gray updated HBASE-1562:
---------------------------------

    Attachment: HBASE-1562-v3.patch

Erik is out of the office for the afternoon, so I'm filling in to get this patch in (holding up block cache development)....

As stack suggested, patch changes from requiring instantiation or a call to reload() to static {}

Otherwise, I reviewed erik's patch and looks good.  Tests pass.

> How to handle the setting of 32 bit versus 64 bit machines
> ----------------------------------------------------------
>
>                 Key: HBASE-1562
>                 URL: https://issues.apache.org/jira/browse/HBASE-1562
>             Project: Hadoop HBase
>          Issue Type: Bug
>    Affects Versions: 0.20.0
>            Reporter: Erik Holstad
>            Assignee: Erik Holstad
>             Fix For: 0.20.0
>
>         Attachments: HBASE-1562-v1.patch, HBASE-1562-v2.patch, HBASE-1562-v3.patch
>
>
> After adding the tests to verify the correctness of the HeapSize calculations the question of where to set the type of machines that are in the cluster arose.
> I would think that most people are using 64 bit machines but we still need to support the use of 32 bit. So the way I see it we can solve this problem in two ways,
> we can either have a settable parameter the the user sets when starting up the cluster or we can try to figure it out ourselves. I think that the second solution would
> be the best, to make it as easy as possible on the user. 
> That means that we need to add extra sizes to HeapSize and maybe even to Bytes.
> Thoughts, comments?

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (HBASE-1562) How to handle the setting of 32 bit versus 64 bit machines

Posted by "stack (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HBASE-1562?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12723698#action_12723698 ] 

stack commented on HBASE-1562:
------------------------------

Erik:

As written, does this all work?

I see that ClassSize only sets its DEFINEs for things like REFERENCE and INTEGER if you call reload.  Otherwise they are 0.  Reload won't be called on static loading of ClassSize so I'd expect that when you do somethign like this in HLogKey -- ClassSize.ARRAY -- that its going to get the 0 value, not the calculated value suited from 32bit or 64bit jvm.   Would suggest you move the bulk of the reload method into a static at head of ClassSize as in:

{code}
static {
  +    Properties sysProps = System.getProperties();
+    String arcModel = sysProps.getProperty("sun.arch.data.model");
+    
+    //Default value is set to 8, covering the case when arcModel is unknown
+    REFERENCE = 8;
+    if (arcModel.equals(THIRTY_TWO)) {
+      REFERENCE = 4;
     }
+    
+    ARRAY = 3 * REFERENCE;
 
-    refSize = ( 4 > sz) ? 4 : sz;
-    minObjectSize = 4*refSize;
+    ARRAYLIST = align(OBJECT + REFERENCE + Bytes.SIZEOF_INT + 
+        align(Bytes.SIZEOF_INT));
+    
+    BYTE_BUFFER = align(OBJECT + REFERENCE + Bytes.SIZEOF_INT + 
+        3 * Bytes.SIZEOF_BOOLEAN + 4 * Bytes.SIZEOF_INT + Bytes.SIZEOF_LONG); 
+    
+    INTEGER = align(OBJECT + Bytes.SIZEOF_INT);
+    
+    MAP_ENTRY = align(OBJECT + 5 * REFERENCE + Bytes.SIZEOF_BOOLEAN);
+    
+    OBJECT = 2 * REFERENCE;
+    
+    TREEMAP = align(OBJECT + 2 * Bytes.SIZEOF_INT + (5+2) * REFERENCE + 
+        ClassSize.align(OBJECT + Bytes.SIZEOF_INT));
+    
+    STRING = align(OBJECT + REFERENCE + 3 * Bytes.SIZEOF_INT);
}
{code}

> How to handle the setting of 32 bit versus 64 bit machines
> ----------------------------------------------------------
>
>                 Key: HBASE-1562
>                 URL: https://issues.apache.org/jira/browse/HBASE-1562
>             Project: Hadoop HBase
>          Issue Type: Bug
>    Affects Versions: 0.20.0
>            Reporter: Erik Holstad
>            Assignee: Erik Holstad
>             Fix For: 0.20.0
>
>         Attachments: HBASE-1562-v1.patch, HBASE-1562-v2.patch
>
>
> After adding the tests to verify the correctness of the HeapSize calculations the question of where to set the type of machines that are in the cluster arose.
> I would think that most people are using 64 bit machines but we still need to support the use of 32 bit. So the way I see it we can solve this problem in two ways,
> we can either have a settable parameter the the user sets when starting up the cluster or we can try to figure it out ourselves. I think that the second solution would
> be the best, to make it as easy as possible on the user. 
> That means that we need to add extra sizes to HeapSize and maybe even to Bytes.
> Thoughts, comments?

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (HBASE-1562) How to handle the setting of 32 bit versus 64 bit machines

Posted by "Erik Holstad (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HBASE-1562?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Erik Holstad updated HBASE-1562:
--------------------------------

    Attachment: HBASE-1562-v1.patch

Tested this in 32 and 64 bit JVM and it passes in both. Might have to sit down with Jon to make better test for the blockcache after hi is ready and with Ryan and look at Blockindex, since it is kinda hard to test as it is right now.

> How to handle the setting of 32 bit versus 64 bit machines
> ----------------------------------------------------------
>
>                 Key: HBASE-1562
>                 URL: https://issues.apache.org/jira/browse/HBASE-1562
>             Project: Hadoop HBase
>          Issue Type: Bug
>    Affects Versions: 0.20.0
>            Reporter: Erik Holstad
>            Assignee: Erik Holstad
>             Fix For: 0.20.0
>
>         Attachments: HBASE-1562-v1.patch
>
>
> After adding the tests to verify the correctness of the HeapSize calculations the question of where to set the type of machines that are in the cluster arose.
> I would think that most people are using 64 bit machines but we still need to support the use of 32 bit. So the way I see it we can solve this problem in two ways,
> we can either have a settable parameter the the user sets when starting up the cluster or we can try to figure it out ourselves. I think that the second solution would
> be the best, to make it as easy as possible on the user. 
> That means that we need to add extra sizes to HeapSize and maybe even to Bytes.
> Thoughts, comments?

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Re: [jira] Commented: (HBASE-1562) How to handle the setting of 32 bit versus 64 bit machines

Posted by Andrew Purtell <ap...@apache.org>.




________________________________
From: Erik Holstad (JIRA) <ji...@apache.org>
To: hbase-dev@hadoop.apache.org
Sent: Monday, June 22, 2009 10:52:07 AM
Subject: [jira] Commented: (HBASE-1562) How to handle the setting of 32 bit versus 64 bit machines


    [ https://issues.apache.org/jira/browse/HBASE-1562?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12722712#action_12722712 ] 

Erik Holstad commented on HBASE-1562:
-------------------------------------

@Stack will play with the System.getProperties(); to see what I can dig out, looks ok, but need to test on 32 bit machine.

@Purtell looking at the refSize value it looks like this is a 32 bit machine, so might be need to add some extra checks to the way the arc is figured out. 

> How to handle the setting of 32 bit versus 64 bit machines
> ----------------------------------------------------------
>
>                 Key: HBASE-1562
>                 URL: https://issues.apache.org/jira/browse/HBASE-1562
>             Project: Hadoop HBase
>          Issue Type: Bug
>    Affects Versions: 0.20.0
>            Reporter: Erik Holstad
>            Assignee: Erik Holstad
>             Fix For: 0.20.0
>
>
> After adding the tests to verify the correctness of the HeapSize calculations the question of where to set the type of machines that are in the cluster arose.
> I would think that most people are using 64 bit machines but we still need to support the use of 32 bit. So the way I see it we can solve this problem in two ways,
> we can either have a settable parameter the the user sets when starting up the cluster or we can try to figure it out ourselves. I think that the second solution would
> be the best, to make it as easy as possible on the user. 
> That means that we need to add extra sizes to HeapSize and maybe even to Bytes.
> Thoughts, comments?

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


      

[jira] Commented: (HBASE-1562) How to handle the setting of 32 bit versus 64 bit machines

Posted by "Erik Holstad (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HBASE-1562?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12722712#action_12722712 ] 

Erik Holstad commented on HBASE-1562:
-------------------------------------

@Stack will play with the System.getProperties(); to see what I can dig out, looks ok, but need to test on 32 bit machine.

@Purtell looking at the refSize value it looks like this is a 32 bit machine, so might be need to add some extra checks to the way the arc is figured out. 

> How to handle the setting of 32 bit versus 64 bit machines
> ----------------------------------------------------------
>
>                 Key: HBASE-1562
>                 URL: https://issues.apache.org/jira/browse/HBASE-1562
>             Project: Hadoop HBase
>          Issue Type: Bug
>    Affects Versions: 0.20.0
>            Reporter: Erik Holstad
>            Assignee: Erik Holstad
>             Fix For: 0.20.0
>
>
> After adding the tests to verify the correctness of the HeapSize calculations the question of where to set the type of machines that are in the cluster arose.
> I would think that most people are using 64 bit machines but we still need to support the use of 32 bit. So the way I see it we can solve this problem in two ways,
> we can either have a settable parameter the the user sets when starting up the cluster or we can try to figure it out ourselves. I think that the second solution would
> be the best, to make it as easy as possible on the user. 
> That means that we need to add extra sizes to HeapSize and maybe even to Bytes.
> Thoughts, comments?

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (HBASE-1562) How to handle the setting of 32 bit versus 64 bit machines

Posted by "stack (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HBASE-1562?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

stack resolved HBASE-1562.
--------------------------

      Resolution: Fixed
    Hadoop Flags: [Reviewed]

Looks good.  Committed.  Thanks Erik (and Jon).

> How to handle the setting of 32 bit versus 64 bit machines
> ----------------------------------------------------------
>
>                 Key: HBASE-1562
>                 URL: https://issues.apache.org/jira/browse/HBASE-1562
>             Project: Hadoop HBase
>          Issue Type: Bug
>    Affects Versions: 0.20.0
>            Reporter: Erik Holstad
>            Assignee: Erik Holstad
>             Fix For: 0.20.0
>
>         Attachments: HBASE-1562-v1.patch, HBASE-1562-v2.patch, HBASE-1562-v3.patch
>
>
> After adding the tests to verify the correctness of the HeapSize calculations the question of where to set the type of machines that are in the cluster arose.
> I would think that most people are using 64 bit machines but we still need to support the use of 32 bit. So the way I see it we can solve this problem in two ways,
> we can either have a settable parameter the the user sets when starting up the cluster or we can try to figure it out ourselves. I think that the second solution would
> be the best, to make it as easy as possible on the user. 
> That means that we need to add extra sizes to HeapSize and maybe even to Bytes.
> Thoughts, comments?

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (HBASE-1562) How to handle the setting of 32 bit versus 64 bit machines

Posted by "Erik Holstad (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HBASE-1562?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12722752#action_12722752 ] 

Erik Holstad commented on HBASE-1562:
-------------------------------------

@Purtell thanks, will use use that way to determine the arc structure instead of the old one from Derby.

Since we are going to not only have one set of Sizes to deal with but two, we cannot longer keep them in HeapSize, so I propose that they are moved into ClassSize and are
calculated after first finding out the arc size.

> How to handle the setting of 32 bit versus 64 bit machines
> ----------------------------------------------------------
>
>                 Key: HBASE-1562
>                 URL: https://issues.apache.org/jira/browse/HBASE-1562
>             Project: Hadoop HBase
>          Issue Type: Bug
>    Affects Versions: 0.20.0
>            Reporter: Erik Holstad
>            Assignee: Erik Holstad
>             Fix For: 0.20.0
>
>
> After adding the tests to verify the correctness of the HeapSize calculations the question of where to set the type of machines that are in the cluster arose.
> I would think that most people are using 64 bit machines but we still need to support the use of 32 bit. So the way I see it we can solve this problem in two ways,
> we can either have a settable parameter the the user sets when starting up the cluster or we can try to figure it out ourselves. I think that the second solution would
> be the best, to make it as easy as possible on the user. 
> That means that we need to add extra sizes to HeapSize and maybe even to Bytes.
> Thoughts, comments?

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (HBASE-1562) How to handle the setting of 32 bit versus 64 bit machines

Posted by "stack (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HBASE-1562?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12722723#action_12722723 ] 

stack commented on HBASE-1562:
------------------------------

Related, @Holstad, from a pointer posted over in hbase-1554 by Nitay, "However, if you'd like to write code which is platform specific (shame on you),  the system property sun.arch.data.model has the value "32", "64", or "unknown".  "  Also, do you want to relate that issue to this one?

> How to handle the setting of 32 bit versus 64 bit machines
> ----------------------------------------------------------
>
>                 Key: HBASE-1562
>                 URL: https://issues.apache.org/jira/browse/HBASE-1562
>             Project: Hadoop HBase
>          Issue Type: Bug
>    Affects Versions: 0.20.0
>            Reporter: Erik Holstad
>            Assignee: Erik Holstad
>             Fix For: 0.20.0
>
>
> After adding the tests to verify the correctness of the HeapSize calculations the question of where to set the type of machines that are in the cluster arose.
> I would think that most people are using 64 bit machines but we still need to support the use of 32 bit. So the way I see it we can solve this problem in two ways,
> we can either have a settable parameter the the user sets when starting up the cluster or we can try to figure it out ourselves. I think that the second solution would
> be the best, to make it as easy as possible on the user. 
> That means that we need to add extra sizes to HeapSize and maybe even to Bytes.
> Thoughts, comments?

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (HBASE-1562) How to handle the setting of 32 bit versus 64 bit machines

Posted by "Andrew Purtell (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HBASE-1562?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12722747#action_12722747 ] 

Andrew Purtell commented on HBASE-1562:
---------------------------------------

@Holstad: {{arc 64}}

> How to handle the setting of 32 bit versus 64 bit machines
> ----------------------------------------------------------
>
>                 Key: HBASE-1562
>                 URL: https://issues.apache.org/jira/browse/HBASE-1562
>             Project: Hadoop HBase
>          Issue Type: Bug
>    Affects Versions: 0.20.0
>            Reporter: Erik Holstad
>            Assignee: Erik Holstad
>             Fix For: 0.20.0
>
>
> After adding the tests to verify the correctness of the HeapSize calculations the question of where to set the type of machines that are in the cluster arose.
> I would think that most people are using 64 bit machines but we still need to support the use of 32 bit. So the way I see it we can solve this problem in two ways,
> we can either have a settable parameter the the user sets when starting up the cluster or we can try to figure it out ourselves. I think that the second solution would
> be the best, to make it as easy as possible on the user. 
> That means that we need to add extra sizes to HeapSize and maybe even to Bytes.
> Thoughts, comments?

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (HBASE-1562) How to handle the setting of 32 bit versus 64 bit machines

Posted by "Andrew Purtell (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HBASE-1562?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12722715#action_12722715 ] 

Andrew Purtell commented on HBASE-1562:
---------------------------------------

@Holstad: Then your refsizes are wrong:

{noformat}
% uname -a
Linux BOA01.trendmicro.com 2.6.18-128.1.6.el5.centos.plusxen #1 SMP Thu Apr 2 13
:32:02 EDT 2009 x86_64 x86_64 x86_64 GNU/Linux

% java -version
java version "1.6.0_13"
Java(TM) SE Runtime Environment (build 1.6.0_13-b03)
Java HotSpot(TM) 64-Bit Server VM (build 11.3-b02, mixed mode)
{noformat}

> How to handle the setting of 32 bit versus 64 bit machines
> ----------------------------------------------------------
>
>                 Key: HBASE-1562
>                 URL: https://issues.apache.org/jira/browse/HBASE-1562
>             Project: Hadoop HBase
>          Issue Type: Bug
>    Affects Versions: 0.20.0
>            Reporter: Erik Holstad
>            Assignee: Erik Holstad
>             Fix For: 0.20.0
>
>
> After adding the tests to verify the correctness of the HeapSize calculations the question of where to set the type of machines that are in the cluster arose.
> I would think that most people are using 64 bit machines but we still need to support the use of 32 bit. So the way I see it we can solve this problem in two ways,
> we can either have a settable parameter the the user sets when starting up the cluster or we can try to figure it out ourselves. I think that the second solution would
> be the best, to make it as easy as possible on the user. 
> That means that we need to add extra sizes to HeapSize and maybe even to Bytes.
> Thoughts, comments?

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (HBASE-1562) How to handle the setting of 32 bit versus 64 bit machines

Posted by "Erik Holstad (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HBASE-1562?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12722729#action_12722729 ] 

Erik Holstad commented on HBASE-1562:
-------------------------------------

@Purtell
Can you put this in some testcode and see what you get?

Properties sysProps = System.getProperties();
System.out.println("arc " + sysProps.getProperty("sun.arch.data.model"));

@Stack, haha yeah that is a great pointer. The reason that we are seeing some of these problems are the code taken from Derby used to decide the arc size, but
we can make this much better if we don't need to run gc and try to figure it out that way, just want to see what result Andrew gets.



> How to handle the setting of 32 bit versus 64 bit machines
> ----------------------------------------------------------
>
>                 Key: HBASE-1562
>                 URL: https://issues.apache.org/jira/browse/HBASE-1562
>             Project: Hadoop HBase
>          Issue Type: Bug
>    Affects Versions: 0.20.0
>            Reporter: Erik Holstad
>            Assignee: Erik Holstad
>             Fix For: 0.20.0
>
>
> After adding the tests to verify the correctness of the HeapSize calculations the question of where to set the type of machines that are in the cluster arose.
> I would think that most people are using 64 bit machines but we still need to support the use of 32 bit. So the way I see it we can solve this problem in two ways,
> we can either have a settable parameter the the user sets when starting up the cluster or we can try to figure it out ourselves. I think that the second solution would
> be the best, to make it as easy as possible on the user. 
> That means that we need to add extra sizes to HeapSize and maybe even to Bytes.
> Thoughts, comments?

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (HBASE-1562) How to handle the setting of 32 bit versus 64 bit machines

Posted by "stack (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HBASE-1562?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12722681#action_12722681 ] 

stack commented on HBASE-1562:
------------------------------

Ask the JVM.  It knows (see the head of log where we print out JVM info.  Maybe way to ask it explicitly in a non-vendor-specific way).

> How to handle the setting of 32 bit versus 64 bit machines
> ----------------------------------------------------------
>
>                 Key: HBASE-1562
>                 URL: https://issues.apache.org/jira/browse/HBASE-1562
>             Project: Hadoop HBase
>          Issue Type: Bug
>    Affects Versions: 0.20.0
>            Reporter: Erik Holstad
>            Assignee: Erik Holstad
>             Fix For: 0.20.0
>
>
> After adding the tests to verify the correctness of the HeapSize calculations the question of where to set the type of machines that are in the cluster arose.
> I would think that most people are using 64 bit machines but we still need to support the use of 32 bit. So the way I see it we can solve this problem in two ways,
> we can either have a settable parameter the the user sets when starting up the cluster or we can try to figure it out ourselves. I think that the second solution would
> be the best, to make it as easy as possible on the user. 
> That means that we need to add extra sizes to HeapSize and maybe even to Bytes.
> Thoughts, comments?

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (HBASE-1562) How to handle the setting of 32 bit versus 64 bit machines

Posted by "Andrew Purtell (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HBASE-1562?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12722699#action_12722699 ] 

Andrew Purtell commented on HBASE-1562:
---------------------------------------

I am seeing HeapSize/ClassSize related failures on a 64 bit platform also, in TestHFile:

{noformat}
2009-06-22 17:31:59,860 DEBUG [main] util.ClassSize(147): Primitives 8, arrays 3
, references(inlcuding 16, for object overhead) 3, refSize 4, size 72
------------- ---------------- ---------------

Testcase: testTFileFeatures took 0.359 sec
Testcase: testMetaBlocks took 0.088 sec
Testcase: testNullMetaBlocks took 0.05 sec
Testcase: testCompressionOrdinance took 0.027 sec
Testcase: testComparator took 0.046 sec
Testcase: testHeapSizeForBlockIndex took 0.245 sec
        FAILED
expected:<72> but was:<128>
junit.framework.AssertionFailedError: expected:<72> but was:<128>
        at org.apache.hadoop.hbase.io.hfile.TestHFile.testHeapSizeForBlockIndex(TestHFile.java:273)
{noformat}


> How to handle the setting of 32 bit versus 64 bit machines
> ----------------------------------------------------------
>
>                 Key: HBASE-1562
>                 URL: https://issues.apache.org/jira/browse/HBASE-1562
>             Project: Hadoop HBase
>          Issue Type: Bug
>    Affects Versions: 0.20.0
>            Reporter: Erik Holstad
>            Assignee: Erik Holstad
>             Fix For: 0.20.0
>
>
> After adding the tests to verify the correctness of the HeapSize calculations the question of where to set the type of machines that are in the cluster arose.
> I would think that most people are using 64 bit machines but we still need to support the use of 32 bit. So the way I see it we can solve this problem in two ways,
> we can either have a settable parameter the the user sets when starting up the cluster or we can try to figure it out ourselves. I think that the second solution would
> be the best, to make it as easy as possible on the user. 
> That means that we need to add extra sizes to HeapSize and maybe even to Bytes.
> Thoughts, comments?

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (HBASE-1562) How to handle the setting of 32 bit versus 64 bit machines

Posted by "Erik Holstad (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HBASE-1562?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Erik Holstad updated HBASE-1562:
--------------------------------

    Attachment: HBASE-1562-v2.patch

Readded empty line.

> How to handle the setting of 32 bit versus 64 bit machines
> ----------------------------------------------------------
>
>                 Key: HBASE-1562
>                 URL: https://issues.apache.org/jira/browse/HBASE-1562
>             Project: Hadoop HBase
>          Issue Type: Bug
>    Affects Versions: 0.20.0
>            Reporter: Erik Holstad
>            Assignee: Erik Holstad
>             Fix For: 0.20.0
>
>         Attachments: HBASE-1562-v1.patch, HBASE-1562-v2.patch
>
>
> After adding the tests to verify the correctness of the HeapSize calculations the question of where to set the type of machines that are in the cluster arose.
> I would think that most people are using 64 bit machines but we still need to support the use of 32 bit. So the way I see it we can solve this problem in two ways,
> we can either have a settable parameter the the user sets when starting up the cluster or we can try to figure it out ourselves. I think that the second solution would
> be the best, to make it as easy as possible on the user. 
> That means that we need to add extra sizes to HeapSize and maybe even to Bytes.
> Thoughts, comments?

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.