aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Author Topic: amuleweb compiled as part of amuled  (Read 3953 times)

lfroen

  • Guest
amuleweb compiled as part of amuled
« on: March 11, 2008, 02:52:48 PM »

Recently I have finally succeeded to compile amuled for NSLU. It works great, but unfortunately amuleweb have a problem. The problem is memory consumption.
Since amuleweb is separate application, it mirrors amule datastructure in some way. In turn, amule core, also mirrors some part of it's own datastructure to enable differential data exchange. All this mirroring is needed to minimize bandwidth and CPU time needed.

There's a way to minimize total memory footprint of amuled+amuleweb - compile them together as one application. This can be chosen as configure-time option, like --enable-monolitic-webserver.
Logged

lfroen

  • Guest
Re: amuleweb compiled as part of amuled
« Reply #1 on: March 11, 2008, 03:34:08 PM »

1) This have nothing to do with existing EC (meaning it stays as-is)
2) Possible
Logged

Kry

  • Ex-developer
  • Retired admin
  • Hero Member
  • *****
  • Karma: -665
  • Offline Offline
  • Posts: 5795
Re: amuleweb compiled as part of amuled
« Reply #2 on: March 11, 2008, 06:48:40 PM »

Funny how years ago we separated them to now have them together again.
Logged

lfroen

  • Guest
Re: amuleweb compiled as part of amuled
« Reply #3 on: March 11, 2008, 10:48:13 PM »

Funny how years ago we separated them to now have them together again.
I can see some advantages of separation, but on embedded system with limited memory (NSLU is good example) it's better to have them together. That's why it's optional
Logged

skolnick

  • Global Moderator
  • Hero Member
  • *****
  • Karma: 24
  • Offline Offline
  • Posts: 1188
  • CentOS 6 User
Re: amuleweb compiled as part of amuled
« Reply #4 on: March 19, 2008, 04:24:48 AM »

One advantage of separation is that you can choose what to install, and what not. For example, I only need amule monolithic and amuleweb (I don't install amuled, alulegui, nor amulecmd), but other people might need only amuled and amulecmd, so they would not need what I need. Modularity is a great thing.

Regards.
Logged

lfroen

  • Guest
Re: amuleweb compiled as part of amuled
« Reply #5 on: March 19, 2008, 10:06:32 AM »

One advantage of separation is that you can choose what to install, ...
Modularity is a great thing.

Yes, modularity is great thing. I would argue, however, that modular design is great thing, but not necessary modular distribution, but this is debatable.
In order to save myself from this discussion, which is gonna be anything but productive, I will preserve existing setup, and add new one as configure option.
As part of change, http socket in amuleweb will become non-blocking, which is good by itself and should be made time ago.
Logged