Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ramdisk to AIX machines #661

Closed
gdams opened this issue Mar 28, 2017 · 13 comments
Closed

Add ramdisk to AIX machines #661

gdams opened this issue Mar 28, 2017 · 13 comments

Comments

@gdams
Copy link
Member

gdams commented Mar 28, 2017

Following issues with citgm being particularly slow, I am going to add a ramdisk to power8-aix-nodejs2.osuosl.org to see if this helps increase performance.

cc/ @mhdawson @gibfahn

@gibfahn gibfahn changed the title Add ramdisk to power8-aix-nodejs2.osuosl.org Add ramdisk to AIX machines Mar 28, 2017
@gibfahn
Copy link
Member

gibfahn commented Mar 28, 2017

So we're starting with power8-nodejs2.osuosl.org (a.k.a. test-osuosl-aix61-ppc64_be-2). If everything works okay we can try with the other test machine, power8-nodejs1.osuosl.org (a.k.a. test-osuosl-aix61-ppc64_be-3)

@gibfahn gibfahn added the infra label Mar 28, 2017
@gibfahn
Copy link
Member

gibfahn commented Mar 28, 2017

If we go ahead with this, we need to make sure we update the Ansible script (and temporarily the manual instructions).

@gdams
Copy link
Member Author

gdams commented Mar 28, 2017

okay so running citgm on the ramdisk was much quicker (less than 20 minutes)

@gdams
Copy link
Member Author

gdams commented Mar 28, 2017

Commands to add the ramdisk:

mkramdisk 4G
mkfs -V jfs2 /dev/ramdisk0 
mkdir -p /ramdisk0
mount -V jfs2 -o log=NULL /dev/ramdisk0 /ramdisk0
mkdir /ramdisk0/citgm
chown /ramdisk0/citgm iojs

@gdams
Copy link
Member Author

gdams commented Mar 28, 2017

From googling, this seems to be the easiest way to mount the ramdisk at startup: @edelsohn @mhdawson

echo 'ramdisk:2:once:/usr/local/bin/ramdisk/ramdisk.ksh >/dev/null 2>&1' \
  >/usr/local/bin/ramdisk/ramdisk.ksh
ramdisk.ksh
RAMDISK=`mkramdisk 5G`
mkdir /ramdisk0 >/dev/null 2>&1
DEVICE="/dev/ramdisk`echo $RAMDISK | awk -F'ramdisk' '{print $2}'`"
echo "yes" | mkfs -V jfs2 $DEVICE
mount -V jfs2 -o log=NULL $DEVICE /ramdisk0
mkdir /ramdisk0/citgm
chown iojs /ramdisk0/citgm

@mhdawson
Copy link
Member

@gdams, ramdisk.ksh seems to say '5M" is that correct or should it be 5G ?

A pull request against the build repo, adding ramdisk.ksh and updates to the ansible scripts to make it run on startup would be the best way to review

@gdams
Copy link
Member Author

gdams commented Mar 28, 2017

Oh sorry, it looks like @gibfahn edited my comment, take the configuration from the above comment that mentions 4G

@gibfahn
Copy link
Member

gibfahn commented Mar 28, 2017

ramdisk.ksh seems to say '5M" is that correct or should it be 5G ?

I copied that verbatim from the linked website. I've changed that to 5G, but I have no idea if the rest of it is applicable.

@gdams
Copy link
Member Author

gdams commented Mar 31, 2017

I also added the same config to power8-aix-nodejs3.osuosl.org (a.k.a. test-osuosl-aix61-ppc64_be-1)

@gibfahn
Copy link
Member

gibfahn commented Sep 11, 2017

@gdams any chance you could PR this to the setup instructions?

@CJKwork
Copy link

CJKwork commented Nov 15, 2018

On the adoptopenjdk infrastructure, I've created ksh scrip AIX_ramdisk.ksh and updated aix.yml to call it. It adds a 4Gb ramdisk, provided the ram is available.

@sam-github
Copy link
Contributor

I'm looking at completing this task by adding the ramdisk entries, but I'm not sure what to do about /home/iojs/build/tools/jython (jython is the only thing in tools).

I don't know if its used, or what job creates it, or if it was created manually.

@nodejs/platform-aix If anyone has any ideas, please tell me. I've search the config for a few of the jobs that have run on aix recently (citgm smoker, test-commit-aix, etc) and find no reference to tools or jython. I just did mv /home/iojs/build/tools /home/iojs/build.tools, I'll see if that causes any issues, or if its recreated.

@sam-github
Copy link
Contributor

I unified ramdisk setup on the AIX machines.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants