Welcome, Guest. Please login or register.

Author Topic: SaMBa V2.2.5  (Read 1857 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline JettahTopic starter

  • Full Member
  • ***
  • Join Date: Nov 2003
  • Posts: 115
    • Show only replies by Jettah
SaMBa V2.2.5
« on: January 12, 2005, 03:27:54 PM »
Hi,

I just installed SaMBa V2.2.5 on my A1200. I must say that it is bloody fast! Used to use V2.0.0 as supplied with the X-Surf board. It is really beond compare. Try it! Good work,  Olaf.

But nothing comes without a bit of hassle. All of a sudden this new setup makes my computer rattle like snake. Equipped with an O-fourty it reaches nearly 100% CPU-usage according to XOper. It is all consumed by:
-   scsi.device
-   dh4 {dh4:}
- 3 [ workbench ] workbench
- 6 [ smbd ] netbios-ns

The latter one flips in and out of the queue. This makes me think that it is constantly loading and stopping on a repetitive base.

What can I do to stop this behaviour? Any idea is welcome!

Regards,

Jettah
Sometimes I wish I was Mt Vesuvius: laying on my back in the sun while smoking a bit and everybody seeing me would say: \\"Look! He\\\'s active!\\" (author unknown to me)
 

Offline Colmiga

  • Full Member
  • ***
  • Join Date: Mar 2002
  • Posts: 105
    • Show only replies by Colmiga
    • http://colmiga.org
Re: SaMBa V2.2.5
« Reply #1 on: January 12, 2005, 04:49:25 PM »
Did you download Samba 2.2.5 from this site: http://www.amigasamba.org ? You may have noticed the comment next to the link for that file on the downloads page, it says the following: "Last 2.2.5 GCC based port. BETA!!".

That version is unoptimized and I think is still reliant on ixemul so its really only good for testing. This would explain the high resource requirements you are experiencing using it.

I remember messing around with that version a while back and had similar issues to you. I would suggest reverting to the latest stable release which is version 2.0.7, also available from that site and aminet.
Sam460ex: PPC460ex/1GHz, 2GB RAM, 30GB SSD via on-board SATA-2, DVD-RW via USB, Radeon 5450 1GB PCIe, Catweasel Mk4 PCI, A4000 KB and Competition Pro CD32 Pad.
A4000D: 030/25MHz, 16MB RAM, Indivision Mk1, 8GB CF as HDD and IDE CD-ROM.

Amiga user since 1992.
 

Offline KennyR

  • Hero Member
  • *****
  • Join Date: Mar 2002
  • Posts: 8081
    • Show only replies by KennyR
    • http://wrongpla.net
Re: SaMBa V2.2.5
« Reply #2 on: January 12, 2005, 04:51:35 PM »
smbd is a inetd service, so you are right: it really is stopped and restarted, according to the requests it gets.

To prevent this you can run it in daemon mode if you like, although I'm not sure Amiga samba supports this properly; to do this, first disable it in Miami/Genesis inetd pages. Then run it like this:

Run >NIL: smbd -D

If it works, you can set it to in a script thats automatically executed when you go online.

However, all that won't stop it eating your CPU time. I advise you to use some tool or scheduler to reduce the priority of the smbd task to -1.
 

Offline KennyR

  • Hero Member
  • *****
  • Join Date: Mar 2002
  • Posts: 8081
    • Show only replies by KennyR
    • http://wrongpla.net
Re: SaMBa V2.2.5
« Reply #3 on: January 12, 2005, 05:31:04 PM »
Quote
Colmiga wrote:
Did you download Samba 2.2.5 from this site: http://www.amigasamba.org ? You may have noticed the comment next to the link for that file on the downloads page, it says the following: "Last 2.2.5 GCC based port. BETA!!".


Yes, this version never worked. But there's a new port for 2.2.5 for 68k, at amigaos.dk. I've just installed it and it works great.
 

Offline JettahTopic starter

  • Full Member
  • ***
  • Join Date: Nov 2003
  • Posts: 115
    • Show only replies by Jettah
Re: SaMBa V2.2.5
« Reply #4 on: January 13, 2005, 04:52:00 PM »
@KennyR

Quote
But there's a new port for 2.2.5 for 68k, at amigaos.dk. I've just installed it and it works great.


This is exactly the one I use for the A1200!

In my UserStartup I've put these lines:
assign Samba: <FullPathName>
path Samba:bin ADD
Resident smbd pure

The latter line prevents the excessive disk accesses as the program is already in memory (README says that smbd is both reentrant and some other thing and can therefore be made resident).

But it still exits with code 0x01 (showing in the Genesis logfile)and then starts again. Not immediately, you know, but after some time (10 minutes, 15 minutes?). And from then onwards every somany seconds. :-?  :-?

With the old setup (V2.0.0) I once had a similar problem and I forgot what I did to overcome this behaviour, but I know it can be cured.


Regards,

Jettah

Sometimes I wish I was Mt Vesuvius: laying on my back in the sun while smoking a bit and everybody seeing me would say: \\"Look! He\\\'s active!\\" (author unknown to me)
 

Offline JettahTopic starter

  • Full Member
  • ***
  • Join Date: Nov 2003
  • Posts: 115
    • Show only replies by Jettah
Re: SaMBa V2.2.5
« Reply #5 on: January 13, 2005, 08:59:32 PM »
@All interested

Probably found the culprit. Some part was looking for these files:
- Samba:log/locks/smbd.pid
- Samba:log/locks/nmbd.pid

In Samba:log/log.nmbd there was repeatedly an addition of a line like this:
ERROR: Can't open /samba/log/locks/nmbd.pid: Error was No such file or directory

Cured it by simply copying those files from the old setup...

Case closed.

Thanks,

Jettah
Sometimes I wish I was Mt Vesuvius: laying on my back in the sun while smoking a bit and everybody seeing me would say: \\"Look! He\\\'s active!\\" (author unknown to me)
 

Offline KennyR

  • Hero Member
  • *****
  • Join Date: Mar 2002
  • Posts: 8081
    • Show only replies by KennyR
    • http://wrongpla.net
Re: SaMBa V2.2.5
« Reply #6 on: January 13, 2005, 09:55:16 PM »
Hmm, strange. pid files are used in unix for a program to know whether it's already running or not. They are created when smbd or nmbd are run and deleted when they are quit. If a .pid exists on the disk a second instance of the program isn't run.

So restoring the .pid files shouldn't have fixed your problem. But then again, Amiga compiles of Samba are strange, so...
 

Offline Zerohero

  • Newbie
  • *
  • Join Date: Oct 2003
  • Posts: 27
    • Show only replies by Zerohero
    • http://www.zerohero.se/
Re: SaMBa V2.2.5
« Reply #7 on: January 13, 2005, 10:26:12 PM »
Latest versions will be available here:

http://www.zerohero.se/samba/

I will be hosting these as Olaf doesn't have the bandwidth himself. It doesn't look good, but the files are there :)

Regards,

Jocke 'Zerohero' Birging
Is that all you got? I\\\'ll take your best shot!