5

I have a server running RHEL on s390 hardware. How do I find whether the server is 31 bit or 64 bit?

uname -a gives:

Linux <hostname> 2.6.32-131.17.1.el6.s390x #1 SMP Thu Sep 29 10:42:48 EDT 2011 s390x s390x s390x GNU/Linux

3 Answers 3

7

Running getconf LONG_BIT will tell you if it is 64 bit or not:

[cole@localhost ~]$getconf LONG_BIT
32
0

According to the Wikipedia Page for the S/390 it's a 31/32-bit system. The "z" architecture replaced this series and introduced 64-bit.

6
  • On z architecture, would uname -a also read as s390? Apr 2, 2013 at 14:54
  • I have absolutely no idea. Have you tried our sister site unix.stackexchange.com ?
    – pauska
    Apr 2, 2013 at 14:56
  • Possibly try getconf LONG_BIT - it should tell you if it's 64 or not. Apr 2, 2013 at 14:57
  • @Cole getconf LONG_BIT prints 64, which prob. means it's 64 bit. Thanks! Extra points if you phrase that as an answer. Apr 2, 2013 at 15:23
  • @BlackSheep I guess this isn't a S/390 then?
    – pauska
    Apr 2, 2013 at 15:56
0
uname -m

gives you bit size for your server

and you can also use getconf command.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .