aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Pages: [1] 2

Author Topic: Option to shut down core  (Read 11240 times)

Morse

  • Full Member
  • ***
  • Karma: 6
  • Offline Offline
  • Posts: 105
Option to shut down core
« on: December 27, 2010, 06:54:49 PM »

And again I am going to ask the possibility to switch off the core without actually shutting it down. Although Kry already told once that he "doesnt see the point of making the option 'not to down-/up- load' for the app the sole purpose of which is down-/-up load" (do not remember where), but I still think that at least for amuled it's a good idea.

Now, I'm faced with the problem to teach my mother to use several p2p clients. And if amuleGUI is something she can comprehend, ssh console and other stuff is far from that. Not to say that i DO NOT want to give her sudo privileges.

There are some reasons why i don't want always to run amuled with 1/1 limits, most important being the shitting in NAT port forwarding table and ntop statistics.

Finally, if you decide that this is something that shouldn't be implemented, than may be you just will do automatic setting of limits to minimum values on hitting the "disconnect" button (with automatic restore on "connect" of course).
Logged

Stu Redman

  • Administrator
  • Hero Member
  • *****
  • Karma: 214
  • Offline Offline
  • Posts: 3739
  • Engines screaming
Option to shut down core
« Reply #1 on: December 27, 2010, 07:19:31 PM »

Kry has a point here (tautology or not).

Finally, if you decide that this is something that shouldn't be implemented, than may be you just will do automatic setting of limits to minimum values on hitting the "disconnect" button (with automatic restore on "connect" of course).
You can accomplish that yourself by calling amulegui from a batch sandwiched between two calls to amulecmd setting the bandwidth limits to whatever you like. (Not below 1k/s however.)

Oh, and P2P apps are not exactly what I'd give innocent mothers to play with...  :-\
Logged
The image of mother goddess, lying dormant in the eyes of the dead, the sheaf of the corn is broken, end the harvest, throw the dead on the pyre -- Iron Maiden, Isle of Avalon

Morse

  • Full Member
  • ***
  • Karma: 6
  • Offline Offline
  • Posts: 105
Option to shut down core
« Reply #2 on: December 27, 2010, 07:35:40 PM »

You can accomplish that yourself by calling amulegui from a batch sandwiched between two calls to amulecmd setting the bandwidth limits to whatever you like. (Not below 1k/s however.)

No, i can't. I don't want to disconnect/reset limits every time amuleGUI is disconnected. I want to make "almost shut down"-state easier accessible.
Logged

Stu Redman

  • Administrator
  • Hero Member
  • *****
  • Karma: 214
  • Offline Offline
  • Posts: 3739
  • Engines screaming
Re: Option to shut down core
« Reply #3 on: December 27, 2010, 10:10:15 PM »

(moved this to feature requests where it belongs)

OK, I misunderstood you. Hm. So you don't want the sleeping period related to activity of amulegui. But you still can set it through amulecmd - same way you would trigger your "core inactivity" feature. SO I really don't see the point.
Logged
The image of mother goddess, lying dormant in the eyes of the dead, the sheaf of the corn is broken, end the harvest, throw the dead on the pyre -- Iron Maiden, Isle of Avalon

Vollstrecker

  • Administrator
  • Hero Member
  • *****
  • Karma: 67
  • Offline Offline
  • Posts: 1549
  • Unofficial Debian Packager
    • http://vollstreckernet.de
Re: Option to shut down core
« Reply #4 on: December 28, 2010, 10:00:56 AM »

You remember the othher thread about the long shutdown? If you need your resources for an hour or so, it would be easier to just tell the core "go for breakfast, till I call you" instead of letting it all write to disk, just to read it all back an hour later.
Logged
Homefucking is killing prostitution

Stu Redman

  • Administrator
  • Hero Member
  • *****
  • Karma: 214
  • Offline Offline
  • Posts: 3739
  • Engines screaming
Re: Option to shut down core
« Reply #5 on: December 28, 2010, 11:36:23 AM »

just tell the core "go for breakfast, till I call you
Isn't that exactly what capping the rates to 1k/s does?
Logged
The image of mother goddess, lying dormant in the eyes of the dead, the sheaf of the corn is broken, end the harvest, throw the dead on the pyre -- Iron Maiden, Isle of Avalon

Vollstrecker

  • Administrator
  • Hero Member
  • *****
  • Karma: 67
  • Offline Offline
  • Posts: 1549
  • Unofficial Debian Packager
    • http://vollstreckernet.de
Re: Option to shut down core
« Reply #6 on: December 28, 2010, 09:49:50 PM »

1 > 0 isn't it. Plus overhead.
Logged
Homefucking is killing prostitution

Stu Redman

  • Administrator
  • Hero Member
  • *****
  • Karma: 214
  • Offline Offline
  • Posts: 3739
  • Engines screaming
Re: Option to shut down core
« Reply #7 on: December 29, 2010, 01:57:16 PM »

OK. Not exactly of course, but for all practical purpose.
And I'd rather get to the source of the problem of the long shutdown than make a messy workaround.
Logged
The image of mother goddess, lying dormant in the eyes of the dead, the sheaf of the corn is broken, end the harvest, throw the dead on the pyre -- Iron Maiden, Isle of Avalon

Morse

  • Full Member
  • ***
  • Karma: 6
  • Offline Offline
  • Posts: 105
Re: Option to shut down core
« Reply #8 on: December 29, 2010, 04:24:40 PM »

actually even 1/1 is good enough if there was an easy option of reducing/restoring speed if not in one, then at least in two-three clicks. For now the only way is to call an option window and type the needed values by hand both for reducing and restoring. For instance toggable tray icon context menu item "reduce to minimum", that can be switched on and off.
Logged

Vollstrecker

  • Administrator
  • Hero Member
  • *****
  • Karma: 67
  • Offline Offline
  • Posts: 1549
  • Unofficial Debian Packager
    • http://vollstreckernet.de
Re: Option to shut down core
« Reply #9 on: December 30, 2010, 12:52:01 AM »

I've been thinking about an option to toogle bw-limit on/off some time ago. Maybe this would be a solution. Setting limits to 1/1 (or whatever else someone wants), and then just a button switching between fullspeed and limited. Maybe in addition something like "amulecmd -c toogle bw-limit on"
Logged
Homefucking is killing prostitution

Stu Redman

  • Administrator
  • Hero Member
  • *****
  • Karma: 214
  • Offline Offline
  • Posts: 3739
  • Engines screaming
Re: Option to shut down core
« Reply #10 on: December 30, 2010, 11:44:01 AM »

If you are using amulecmd anyway you can already do it, so I don't see an advantage.
Logged
The image of mother goddess, lying dormant in the eyes of the dead, the sheaf of the corn is broken, end the harvest, throw the dead on the pyre -- Iron Maiden, Isle of Avalon

Vollstrecker

  • Administrator
  • Hero Member
  • *****
  • Karma: 67
  • Offline Offline
  • Posts: 1549
  • Unofficial Debian Packager
    • http://vollstreckernet.de
Re: Option to shut down core
« Reply #11 on: December 31, 2010, 12:30:30 AM »

I thought about an gui option, and as it makes sense to include it in remotegui and web, too, there'll be an handler in the ec-code anyways, so it's just logical to make in useable in cmd, too.
Logged
Homefucking is killing prostitution

Stu Redman

  • Administrator
  • Hero Member
  • *****
  • Karma: 214
  • Offline Offline
  • Posts: 3739
  • Engines screaming
Re: Option to shut down core
« Reply #12 on: December 31, 2010, 12:40:09 AM »

So you need settings dialog for "alternate" up/down speed, and a "convenient" place in the gui to toggle them.
I'd say this clutters up the interface and increases the risk of misbehavior due to erroneous configuration. I'm against that.
Logged
The image of mother goddess, lying dormant in the eyes of the dead, the sheaf of the corn is broken, end the harvest, throw the dead on the pyre -- Iron Maiden, Isle of Avalon

Vollstrecker

  • Administrator
  • Hero Member
  • *****
  • Karma: 67
  • Offline Offline
  • Posts: 1549
  • Unofficial Debian Packager
    • http://vollstreckernet.de
Re: Option to shut down core
« Reply #13 on: December 31, 2010, 02:54:07 AM »

No alternative. The settings as they are, and somewhere on the downloads page, or beside the connections globe say on or off. It's just a switch deciding if the usual bw-limits are applied or ignored.
Logged
Homefucking is killing prostitution

Stu Redman

  • Administrator
  • Hero Member
  • *****
  • Karma: 214
  • Offline Offline
  • Posts: 3739
  • Engines screaming
Re: Option to shut down core
« Reply #14 on: December 31, 2010, 11:01:53 AM »

This is wrong in many ways.
- Whenever somebody whines "aMule is not downloading!!!" we will have to ask "did you accidentally click on that 'off'-thingy in the status line?". I don't need that, thank you.
- People will still queue up at you. Since the number of sources they ask is limited, their chance of downloading (and then sharing) is diminished with a dud source like you. So it hurts the network.
- You clutter up other Kad nodes publishing files you don't actually share.
Kry already told once that he "doesnt see the point of making the option 'not to down-/up- load' for the app the sole purpose of which is down-/-up load"
This sums it up pretty well.

Shut down your core when you don't want it to be active, and be done with it.
Logged
The image of mother goddess, lying dormant in the eyes of the dead, the sheaf of the corn is broken, end the harvest, throw the dead on the pyre -- Iron Maiden, Isle of Avalon
Pages: [1] 2