private static int runmemsize(String[] args) {
    String rstr = null;
    String path = null;
    for (int i = 1; i < args.length; i++) {
      String arg = args[i];
      if (path == null && arg.startsWith("-")) {
        usage();
      } else if (rstr == null) {
        rstr = arg;
      } else if (path == null) {
        path = arg;
      } else {
        usage();
      }
    }
    long rnum = rstr != null ? Utility.atoix(rstr) : 1000000;
    if (rnum < 1) usage();
    int rv = procmemsize(rnum, path);
    return rv;
  }