Re: [Gluster-devel] Need help with running bench test on Gluster cluster.

2016-10-12 Thread Menaka Mohan
Hello Nigel B,

Thank you so much for you reply. Recently, I have noticed few syntax errors on 
the code and I have corrected them. Kindly review the Pull request.

Since I do not have a laptop with good specifications, I am unable to use VMs. 
I tried and it crashed many times. So with the support of a college friend I 
have setup the environment in a lab and accessing it through Bitvise SSH 
client. With the process becoming more complex, I am learning more things.

I have thoroughly gone through Shyam's reply and working on it.

Regards,
Menaka M


On Tue, Oct 11, 2016 at 07:53:09PM +, Menaka Mohan wrote:
> Hi,
>
>
> I am Menaka M. I am interested in participating in this round of Outreachy 
> under Gluster. I am new to this open source world. Kindly help me with the 
> following query.
>
>
> I have set up the Gluster development environment with two servers and one 
> client. I am trying to run the basic bench test on the Gluster cluster from 
> this GitHub 
> repo. 
> I also have IOZone installed. While trying to run the provided script, i get 
> the following error. I was trying to identify the cause of the error. Kindly 
> help me with that.
>
> So, I learned more about IOZone and also the performance testing section in 
> the Gluster docs. With that knowledge and to learn more, I have gone through 
> the code and running iozone commands mentioned in the GlusterBench.py script 
> individually.
>
> If I am asking a very basic thing, apologies. I will quickly learn things.
>
> Regards,
> Menaka M
>

Hi Menaka,

Thanks for taking a look at gbench. It appears that you have uncovered a bug in 
our documentation and code.

Shyam is the expert here and I'll let him chime in. You need an environment 
variable with CLIENTS and SERVER to get this working. So when you run this, you 
need at least two machines (VMs would be best. Happy to guide you on how to set 
this up if you'd like). It would look something like this:

CLIENTS="192.168.0.1 192.158.0.2" SERVERS="192.168.0.3 192.168.0.3" python 
GlusterBench.py -s 64 -f 1 -n 5 -v

I'm making a lot of assumptions here. If there's anything that is confusing, 
let me know and I'm happy to clarify. I'll let Shyam jump in later today (he's 
in EST) to chime with anything else I've missed.

--
nigelb
___
Gluster-devel mailing list
Gluster-devel@gluster.org
http://www.gluster.org/mailman/listinfo/gluster-devel


Re: [Gluster-devel] Need help with running bench test on Gluster cluster.

2016-10-12 Thread Nigel Babu
On Tue, Oct 11, 2016 at 07:53:09PM +, Menaka Mohan wrote:
> Hi,
>
>
> I am Menaka M. I am interested in participating in this round of Outreachy 
> under Gluster. I am new to this open source world. Kindly help me with the 
> following query.
>
>
> I have set up the Gluster development environment with two servers and one 
> client. I am trying to run the basic bench test on the Gluster cluster from 
> this GitHub 
> repo. 
> I also have IOZone installed. While trying to run the provided script, i get 
> the following error. I was trying to identify the cause of the error. Kindly 
> help me with that.
>
> So, I learned more about IOZone and also the performance testing section in 
> the Gluster docs. With that knowledge and to learn more, I have gone through 
> the code and running iozone commands mentioned in the GlusterBench.py script 
> individually.
>
> If I am asking a very basic thing, apologies. I will quickly learn things.
>
> Regards,
> Menaka M
>

Hi Menaka,

Thanks for taking a look at gbench. It appears that you have uncovered a bug in
our documentation and code.

Shyam is the expert here and I'll let him chime in. You need an environment
variable with CLIENTS and SERVER to get this working. So when you run this, you
need at least two machines (VMs would be best. Happy to guide you on how to set
this up if you'd like). It would look something like this:

CLIENTS="192.168.0.1 192.158.0.2" SERVERS="192.168.0.3 192.168.0.3" python 
GlusterBench.py -s 64 -f 1 -n 5 -v

I'm making a lot of assumptions here. If there's anything that is confusing,
let me know and I'm happy to clarify. I'll let Shyam jump in later today (he's
in EST) to chime with anything else I've missed.

--
nigelb
___
Gluster-devel mailing list
Gluster-devel@gluster.org
http://www.gluster.org/mailman/listinfo/gluster-devel


[Gluster-devel] Need help with running bench test on Gluster cluster.

2016-10-11 Thread Menaka Mohan
Hi,


I am Menaka M. I am interested in participating in this round of Outreachy 
under Gluster. I am new to this open source world. Kindly help me with the 
following query.


I have set up the Gluster development environment with two servers and one 
client. I am trying to run the basic bench test on the Gluster cluster from 
this GitHub 
repo. I 
also have IOZone installed. While trying to run the provided script, i get the 
following error. I was trying to identify the cause of the error. Kindly help 
me with that.

So, I learned more about IOZone and also the performance testing section in the 
Gluster docs. With that knowledge and to learn more, I have gone through the 
code and running iozone commands mentioned in the GlusterBench.py script 
individually.

If I am asking a very basic thing, apologies. I will quickly learn things.

Regards,
Menaka M

--

python GlusterBench.py -s 64 -f 1 -n 5 -v

Number threads = 4
Client list = HadoopSlave4

Running IOZone with 64KB record size and 4 threads,  Creating an 8 GB file with 
every thread.
Running smallfile with 64KB files, creating 1 files.
Running squential IOZone tests, starting with sequential writes.

About to gather sample --> 0

Iozone: Performance Test of File I/O
Version $Revision: 3.429 $
Compiled for 64 bit mode.
Build: linux-AMD64

Contributors:William Norcott, Don Capps, Isom Crawford, Kirby Collins
 Al Slater, Scott Rhine, Mike Wisner, Ken Goss
 Steve Landherr, Brad Smith, Mark Kelly, Dr. Alain CYR,
 Randy Dunlap, Mark Montague, Dan Million, Gavin Brebner,
 Jean-Marc Zucconi, Jeff Blomberg, Benny Halevy, Dave Boone,

Adding the current sample to the list: None
Dropping cache
/root/sync-drop-caches.sh: 13: /root/sync-drop-caches.sh: Bad substitution
Cleaning up files.

About to gather sample --> 1

/* I removed the Iozone and Contributors header */

Adding the current sample to the list: None
Dropping cache
/root/sync-drop-caches.sh: 13: /root/sync-drop-caches.sh: Bad substitution
Cleaning up files.

About to gather sample --> 2

Adding the current sample to the list: None
Dropping cache
/root/sync-drop-caches.sh: 13: /root/sync-drop-caches.sh: Bad substitution
Cleaning up files.

About to gather sample --> 3

Adding the current sample to the list: None
Dropping cache
/root/sync-drop-caches.sh: 13: /root/sync-drop-caches.sh: Bad substitution
Cleaning up files.

About to gather sample --> 4

Adding the current sample to the list: None
Dropping cache
/root/sync-drop-caches.sh: 13: /root/sync-drop-caches.sh: Bad substitution
No cleanup on 4 iteration.

The results for sequential writes are: [None, None, None, None, None]

Traceback (most recent call last):
  File "GlusterBench.py", line 255, in 
main()
  File "GlusterBench.py", line 76, in main
average_seq_write = find_average(result1)
  File "GlusterBench.py", line 250, in find_average
total = total + int(samples_in[x])
TypeError: int() argument must be a string or a number, not 'NoneType'

-
___
Gluster-devel mailing list
Gluster-devel@gluster.org
http://www.gluster.org/mailman/listinfo/gluster-devel