GithubHelp home page GithubHelp logo

resource's People

Contributors

aaaaalbert avatar justincappos avatar linkleonard avatar monzum avatar vladimir-v-diaz avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

resource's Issues

Improve benchmarking error message when vesselinfo file is missing

The benchmark script called by the Seattle installer expects a vesselinfo file (usually created by the custom installer builder for the user or the clearinghouse) so that it knows how to partition resources into vessels. The code there intends to inform the user if the file is malformed, but breaks if the file is missing at all. In the latter case, the installer log will contain the following:

New installation, beginning benchmark.
Traceback (most recent call last):
  File "seattleinstaller.py", line 1755, in perform_system_benchmarking
  File "/home/john/hello/trunk/custominstallerbuilder/html/static/installers/base/seattle/seattle_repy/benchmark_resources.py", line 543, in main
IOError: [Errno 2] No such file or directory: 'vesselinfo'
New installation, beginning benchmark.
Traceback (most recent call last):
  File "seattleinstaller.py", line 1755, in perform_system_benchmarking
  File "/home/john/hello/trunk/custominstallerbuilder/html/static/installers/base/seattle/seattle_repy/benchmark_resources.py", line 543, in main
IOError: [Errno 2] No such file or directory: 'vesselinfo'

To give a better indication of what went wrong, the except clause should catch IOError and treat that separately from the other exceptions the code reading in the vesselinfo file can raise when the file is malformed.

It might be a good idea to add probable causes for this error (à la "Trying to install a baseinstaller"?).


Thanks to @aot221 for reporting this issue!

Mac_BSD_resources fails if sysctl lacks kern.ipc.maxsockets key

The Mac/BSD resource measurement script expects a sysctl key named kern.ipc.maxsockets to find the maximum number of sockets that a Seattle install should use. On OS X 10.10, this key does not always exist, and the mechanics of when it exists or is missing are unknown currently.

The error is seen during install,

$ ./install.sh
System benchmark starting...
sysctl: unknown oid 'kern.ipc.maxsockets'
Benchmark failed for insockets resource: unable to find max number of sockets
Benchmark failed for outsockets resource: unable to find max number of sockets
The above benchmarking error(s) occurred.
If you choose to continue anyways then default values will be used for failed benchmarks.
Failed.
This install cannot succeed either because required installation info is corrupted or resources are insufficient.
Please email the Seattle project for additional support, and attach the installer_benchmark.log and vesselinfo files, found in the seattle_repy directory, in order to help us diagnose the issue.

David A. Herrera from Universidad Antonio Nariño in Colombia helped developing and testing a patch, which essentially goes and preinitializes the number to 512 (the number found on my OS 10.6.8 box).

Before sending a PR, I would appreciate any Mac users to chime in and report the value found on their machines (if it exists!) by sending the output of

uname -v
sysctl kern.ipc.maxsockets
Darwin version OS X version (crossref) maxsockets by
Darwin Kernel Version 14.5.0: Wed Jul 29 02:26:53 PDT 2015; root:xnu-2782.40.9~1/RELEASE_X86_64 10.10.5 N/A @fmetzger, @StephenKing
Darwin Kernel Version 14.0.0: Sat Sep 27 03:58:47 PDT 2014; root:xnu-2782.1.97~11/RELEASE_X86_64 10.10 N/A @XuefengHuang
Darwin Kernel Version 13.4.0: Wed Mar 18 16:20:14 PDT 2015; root:xnu-2422.115.14~1/RELEASE_X86_64 10.9 512 @lukpueh, @michaelkux
Darwin Kernel Version 12.6.0: Wed Mar 18 16:23:48 PDT 2015; root:xnu-2050.48.19~1/RELEASE_X86_64 10.8.5 512 @pooledge
Darwin Kernel Version 10.8.0: Tue Jun 7 16:32:41 PDT 2011; root:xnu-1504.15.3~1/RELEASE_X86_64 10.6.8 512 @aaaaalbert

Thanks everyone for contributing!

Rewrite bandwidth code so that it can work both ways

The bandwidth code right now is specific to client or server, and only allows a client to check upload speed. We want to have one set of code, written in repy, that would allow one to check both upload and download speed.

Mac_BSD_resources underestimates RAM size

Mac_BSD_resources.py uses sysctl hw.physmem to find the size of RAM. Unfortunately, the info is off by a factor of 4 on a MacBook Pro 8,2 running Mac OS X 10.6.8 on which I'm testing this. (At least we are underestimating the size, so this only hurts the Seattle install, but not the resource donor.)

sysctl hw.memsize gives the correct memory size, 8 GB here.

See also https://discussions.apple.com/thread/1753088?start=0&tstart=0

We should test what the different hw. keys return on a couple of machines, and then decide on a fix.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.