Re: [Samba] Samba domain support on an embedded platform
Hi, We're using an MPC8241. We've got an 8 MB flash partition, and a small portion of hard drive space that we can use as well. At the moment, smbd, smbpasswd, and nmbd all fit inside our 8 MB flash partition with a little bit left over. Thanks, Anthony On Fri, 2006-01-20 at 09:24 +0100, Tomasz Chmielewski wrote: > Anthony Russello schrieb: > > Hi All, > > > > I've been reading through the archives, and am still reading through > > now, but I figured I would ask this anyways. > > > > My task is to support domain users and groups on an embedded network > > device using Samba 3.0.14a (upgrading would be difficult, due to the > > qualification testing our QA department would require). > > > > I'm trying to determine the minimum set of required libraries and > > applications in order to support both mixed mode and native windows 2000 > > domains. > > > > We need to: > > - join the domain > > - be able to import users and groups from the domain > > - be able to assign users and groups to shares on the device > > > > All within a small footprint. > > Hi, > > I'm just trying to do the same. > What embedded platform do you want to use; i.e. how much space do you have? > > -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] Samba domain support on an embedded platform
Hi All, I've been reading through the archives, and am still reading through now, but I figured I would ask this anyways. My task is to support domain users and groups on an embedded network device using Samba 3.0.14a (upgrading would be difficult, due to the qualification testing our QA department would require). I'm trying to determine the minimum set of required libraries and applications in order to support both mixed mode and native windows 2000 domains. We need to: - join the domain - be able to import users and groups from the domain - be able to assign users and groups to shares on the device All within a small footprint. I know that this isn't exactly the goal of the samba project, but I'd like to get a small footprint samba installation with all of the required components in order to support domain logons in both mixed and native mode domains. Thanks in advance, Anthony -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Possible Samba Memory Leak
> As you're doing this on an embedded system as I recall > you > might want to cut down on the stat cache (which can > grow > unlimited on normal systems). I just read up on the stat cache options, and from what I saw, the default stat cache size is 50KB. Is that incorrect? > To turn it off set : > > stat cache = False I'll give this a try. It should be noted that I was able to reproduce the same issue on a dual P3 550, with 512MB of RAM. It took a fair bit longer to reach the point of failure, but it did fail. I believe we reached around 1300 iterations of writing 3500+ small files, then reading those back to compare them. Thanks, Anthony -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Possible Samba Memory Leak
Hi Jeremy, The same issue occurs when running samba 3.0.14a fresh from samba.org. Here are my .configure options: ./configure --bindir=/bin \ --sbindir=/sbin \ --sysconfdir=/etc/samba \ --includedir=/opt/crosstool/powerpc-603e-linux-gnu/gcc-3.3.4-glibc-2.3.2/powerpc-603e-linux-gnu/sys-include \ --libdir=/opt/crosstool/powerpc-603e-linux-gnu/gcc-3.3.4-glibc-2.3.2/powerpc-603e-linux-gnu/lib \ --host=powerpc-603e-linux-gnu \ --disable-cups \ --disable-xmltest \ --without-afs \ --without-fake-kaserver \ --with-privatedir=/etc/samba \ --with-lockdir=/var/lock \ --with-piddir=/var/lock \ --without-sys-quotas \ --without-quotas \ --with-included-popt=yes \ --without-sendfile-support \ --without-winbind \ --prefix= \ --without-ldap \ --without-krb5 \ --without-libsmbclient \ --without-ads \ --with-configdir=/etc/samba \ --with-codepagedir=/etc/samba \ --without-automount \ --without-smbmount \ --without-pam \ --without-acl-support \ --without-utmp \ --without-python \ --without-libiconv Here is the output on the console: / # oom-killer: gfp_mask=0xd2 DMA per-cpu: cpu 0 hot: low 8, high 24, batch 4 cpu 0 cold: low 0, high 8, batch 4 Normal per-cpu: empty HighMem per-cpu: empty Free pages:1272kB (0kB HighMem) Active:36 inactive:364 dirty:12 writeback:14 unstable:0 free:318 slab:14662 mapped:156 pagetables:22 DMA free:1272kB min:1024kB low:1280kB high:1536kB active:144kB inactive:1456kB present:65536kB pages _scanned:0 all_unreclaimable? no lowmem_reserve[]: 0 0 0 Normal free:0kB min:0kB low:0kB high:0kB active:0kB inactive:0kB present:0kB pages_scanned:0 all_unr eclaimable? no lowmem_reserve[]: 0 0 0 HighMem free:0kB min:128kB low:160kB high:192kB active:0kB inactive:0kB present:0kB pages_scanned:0 all_unreclaimable? no lowmem_reserve[]: 0 0 0 DMA: 64*4kB 13*8kB 21*16kB 10*32kB 0*64kB 0*128kB 1*256kB 0*512kB 0*1024kB 0*2048kB 0*4096kB = 1272k B Normal: empty HighMem: empty Swap cache: add 10790, delete 10714, find 3455/7078, race 0+0 Free swap = 126680kB Total swap = 128512kB Out of Memory: Killed process 828 (smbd). oom-killer: gfp_mask=0x1d2 DMA per-cpu: cpu 0 hot: low 8, high 24, batch 4 cpu 0 cold: low 0, high 8, batch 4 Normal per-cpu: empty HighMem per-cpu: empty Free pages:1312kB (0kB HighMem) Active:84 inactive:124 dirty:0 writeback:0 unstable:0 free:328 slab:14837 mapped:184 pagetables:18 DMA free:1312kB min:1024kB low:1280kB high:1536kB active:336kB inactive:496kB present:65536kB pages_ scanned:362 all_unreclaimable? no lowmem_reserve[]: 0 0 0 Normal free:0kB min:0kB low:0kB high:0kB active:0kB inactive:0kB present:0kB pages_scanned:0 all_unr eclaimable? no lowmem_reserve[]: 0 0 0 HighMem free:0kB min:128kB low:160kB high:192kB active:0kB inactive:0kB present:0kB pages_scanned:0 all_unreclaimable? no lowmem_reserve[]: 0 0 0 DMA: 64*4kB 20*8kB 20*16kB 10*32kB 0*64kB 0*128kB 1*256kB 0*512kB 0*1024kB 0*2048kB 0*4096kB = 1312k B Normal: empty HighMem: empty Swap cache: add 29969, delete 29913, find 8669/19859, race 0+0 Free swap = 126796kB Total swap = 128512kB Out of Memory: Killed process 934 (smbd). oom-killer: gfp_mask=0xd2 DMA per-cpu: cpu 0 hot: low 8, high 24, batch 4 cpu 0 cold: low 0, high 8, batch 4 Normal per-cpu: empty HighMem per-cpu: empty Free pages:1472kB (0kB HighMem) Active:52 inactive:163 dirty:0 writeback:2 unstable:0 free:368 slab:14820 mapped:193 pagetables:18 DMA free:1472kB min:1024kB low:1280kB high:1536kB active:208kB inactive:652kB present:65536kB pages_ scanned:230 all_unreclaimable? no lowmem_reserve[]: 0 0 0 Normal free:0kB min:0kB low:0kB high:0kB active:0kB inactive:0kB present:0kB pages_scanned:0 all_unr eclaimable? no lowmem_reserve[]: 0 0 0 HighMem free:0kB min:128kB low:160kB high:192kB active:0kB inactive:0kB present:0kB pages_scanned:0 all_unreclaimable? no lowmem_reserve[]: 0 0 0 DMA: 112*4kB 16*8kB 20*16kB 10*32kB 0*64kB 0*128kB 1*256kB 0*512kB 0*1024kB 0*2048kB 0*4096kB = 1472 kB Normal: empty HighMem: empty Swap cache: add 48834, delete 48765, find 14402/32998, race 0+0 Free swap = 126976kB Total swap = 128512kB Out of Memory: Killed process 957 (smbd). Thanks, Anthony --- Anthony Russello <[EMAIL PROTECTED]> wrote: > Okay, > > If I manually edit include/config.h to change the > iconv stuff to #undef and commented out, it now > builds > (might be an configure issue there). > > That setup is currently running, it'll take several > hours before we hit the error condition (if we hit > it > with this build). > > I'll get back to you tomorrow with the results. > > Thanks again for responding so quickly. > > Cheers, > Anthony > > --- Anthon
Re: [Samba] Possible Samba Memory Leak
Okay, If I manually edit include/config.h to change the iconv stuff to #undef and commented out, it now builds (might be an configure issue there). That setup is currently running, it'll take several hours before we hit the error condition (if we hit it with this build). I'll get back to you tomorrow with the results. Thanks again for responding so quickly. Cheers, Anthony --- Anthony Russello <[EMAIL PROTECTED]> wrote: > > --- Jeremy Allison <[EMAIL PROTECTED]> wrote: > > > > > 3.0.2a is very old. Can you attempt the same with > a > > 3.0.14a at least. > > Hi Jeremy, > > Attempts to configure samba 3.0.14a with > --without-libiconv result in the error: > > > checking whether pututline returns pointer... yes > checking for ut_syslen in utmpx... no > configure: error: argument to --with-libiconv must > be > a directory > > > > Linking bin/smbd > lib/iconv.o(.text+0x2a8): In function `sys_iconv': > : undefined reference to `libiconv' > lib/iconv.o(.text+0x2d8): In function `sys_iconv': > : undefined reference to `libiconv' > lib/iconv.o(.text+0x5a0): In function > `smb_iconv_open': > : undefined reference to `libiconv_open' > lib/iconv.o(.text+0x5bc): In function > `smb_iconv_open': > : undefined reference to `libiconv_open' > lib/iconv.o(.text+0x5f4): In function > `smb_iconv_open': > : undefined reference to `libiconv_open' > lib/iconv.o(.text+0x610): In function > `smb_iconv_open': > : undefined reference to `libiconv_open' > lib/iconv.o(.text+0x8d0): In function > `smb_iconv_close': > : undefined reference to `libiconv_close' > lib/iconv.o(.text+0x8e0): In function > `smb_iconv_close': > : undefined reference to `libiconv_close' > lib/iconv.o(.text+0x8f0): In function > `smb_iconv_close': > : undefined reference to `libiconv_close' > collect2: ld returned 1 exit status > make: *** [bin/smbd] Error 1 > stripping using powerpc-603e-linux-gnu-strip > > > This worked fine in samba 3.0.2a. Unfortunately, > due > to space limitations in our flash filesystem on our > embedded device, we can't include libiconv. > > Any ideas? > > Thanks for getting back to me so soon. > > Anthony > -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Fwd: Re: [Samba] Possible Samba Memory Leak
Forgot to reply to all... --- Anthony Russello <[EMAIL PROTECTED]> wrote: > Date: Tue, 28 Jun 2005 16:43:55 -0400 (EDT) > From: Anthony Russello <[EMAIL PROTECTED]> > Subject: Re: [Samba] Possible Samba Memory Leak > To: Jeremy Allison <[EMAIL PROTECTED]> > > > --- Jeremy Allison <[EMAIL PROTECTED]> wrote: > > > > > 3.0.2a is very old. Can you attempt the same with > a > > 3.0.14a at least. > > Hi Jeremy, > > Attempts to configure samba 3.0.14a with > --without-libiconv result in the error: > > > checking whether pututline returns pointer... yes > checking for ut_syslen in utmpx... no > configure: error: argument to --with-libiconv must > be > a directory > > > > Linking bin/smbd > lib/iconv.o(.text+0x2a8): In function `sys_iconv': > : undefined reference to `libiconv' > lib/iconv.o(.text+0x2d8): In function `sys_iconv': > : undefined reference to `libiconv' > lib/iconv.o(.text+0x5a0): In function > `smb_iconv_open': > : undefined reference to `libiconv_open' > lib/iconv.o(.text+0x5bc): In function > `smb_iconv_open': > : undefined reference to `libiconv_open' > lib/iconv.o(.text+0x5f4): In function > `smb_iconv_open': > : undefined reference to `libiconv_open' > lib/iconv.o(.text+0x610): In function > `smb_iconv_open': > : undefined reference to `libiconv_open' > lib/iconv.o(.text+0x8d0): In function > `smb_iconv_close': > : undefined reference to `libiconv_close' > lib/iconv.o(.text+0x8e0): In function > `smb_iconv_close': > : undefined reference to `libiconv_close' > lib/iconv.o(.text+0x8f0): In function > `smb_iconv_close': > : undefined reference to `libiconv_close' > collect2: ld returned 1 exit status > make: *** [bin/smbd] Error 1 > stripping using powerpc-603e-linux-gnu-strip > > > This worked fine in samba 3.0.2a. Unfortunately, > due > to space limitations in our flash filesystem on our > embedded device, we can't include libiconv. > > Any ideas? > > Thanks for getting back to me so soon. > > Anthony > -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] Possible Samba Memory Leak
Hi All, We're currently trying to use samba in an embedded application, so we're working with samba 3.0.2a compiled for PPC. We have a test application which will basically write, then read back and compare data files on the disk. The problems we see occur when we try using just over 3500 small files (< 10k each). It seems that after about 200 or so iterations of this test, we start to see the smbd process's VmRss size grow. Once it starts growing, it continues to grow until an Out of Memory condition occurs, somewhere around 270 iterations. We've tried this same test on the following versions of samba as well, and received the same result: samba-2.2.7a samba-2.2.8 samba-2.2.12 Here's our smb.conf file: [global] workgroup = WORKGROUP server string = log file = /var/samba/log.%m max log size = 50 security = share encrypt passwords = yes smb passwd file = /etc/samba/smbpasswd socket options = TCP_NODELAY SO_RCVBUF=16384 SO_SNDBUF=16384 dns proxy = no browsable = yes guest account = nobody guest ok = yes create mask = 777 directory mask = 777 force directory mode = 0777 force create mode 0777 read size = 65536 disable spoolss = yes [Share] path = /share public = yes writable = yes veto files = /lost+found/ hide files = /lost+found/ [Printer] path = /var/lp/ printer name = printer writable = yes public = yes printable = yes print command = lpr -r %s Here's some output during the test: At the start of the test, here is the process listing: / # ps PID Uid VmSize Stat Command 1 root520 S ini 2 rootSWN [ksoftirqd/0] 3 rootSW< [events/0] 4 rootSW< [khelper] 9 rootSW< [kthread] 32 rootSW< [kblockd/0] 45 rootSW [khubd] 84 rootSW [pdflush] 85 rootSW [pdflush] 87 rootSW< [aio/0] 86 rootDW [kswapd0] 645 rootSW [mtdblockd] 646 rootSW [ftld] 647 rootSW [nftld] 677 rootSWN [jffs2_gcd_mtd4] 765 root328 S /sbin/syslogd -m 0 -s 40 -b 0 830 root 1820 S /sbin/smbd 891 root836 S /bin/sh 971 root 3104 S /sbin/smbd 972 root736 R ps This was right after a boot, then manually shutting down nmbd, and various other small daemons that were unnecessary for the test 2 hours later, here's the output: / # ps PID Uid VmSize Stat Command 1 root520 S ini 2 rootSWN [ksoftirqd/0] 3 rootSW< [events/0] 4 rootSW< [khelper] 9 rootSW< [kthread] 32 rootSW< [kblockd/0] 45 rootSW [khubd] 84 rootSW [pdflush] 85 rootSW [pdflush] 87 rootSW< [aio/0] 86 rootDW [kswapd0] 645 rootSW [mtdblockd] 646 rootSW [ftld] 647 rootSW [nftld] 677 rootSWN [jffs2_gcd_mtd4] 765 root328 S /sbin/syslogd -m 0 -s 40 -b 0 830 root 1820 S /sbin/smbd 891 root888 S /bin/sh 971 root 3104 S /sbin/smbd 1007 root736 R ps Then, around iteration number 200, we see this: / # ps PID Uid VmSize Stat Command 1 root924 S ini 2 rootSWN [ksoftirqd/0] 3 rootSW< [events/0] 4 rootSW< [khelper] 9 rootSW< [kthread] 32 rootSW< [kblockd/0] 45 rootSW [khubd] 84 rootSW [pdflush] 85 rootSW [pdflush] 87 rootSW< [aio/0] 86 rootDW [kswapd0] 645 rootSW [mtdblockd] 646 rootSW [ftld] 647 rootSW [nftld] 677 rootSWN [jffs2_gcd_mtd4] 765 root664 S /sbin/syslogd -m 0 -s 40 -b 0 830 root 3296 S /sbin/smbd 891 root 2756 S /bin/sh 971 root 6176 D /sbin/smbd 1071 root736 R ps This last time, I actually stopped the test, disconnected the network drive, and reconnected the network drive, so the new process listing looks like this: / # ps PID Uid VmSize Stat Command 1 root924 S ini 2 rootSWN [ksoftirqd/0] 3 rootSW< [events/0] 4 rootSW< [khelper] 9 rootSW< [kthread] 32 rootSW< [kblockd/0] 45 rootSW [khubd] 84 rootSW [pdflush] 85 rootSW [pdflush] 87 rootSW< [aio/0] 86 rootSW [kswapd0] 645 rootSW [mtdblockd] 646 rootSW [ftld] 647 rootSW [nftld] 677 rootSWN [jffs2_gcd_mtd4] 765 root668 S /sbin/
[Samba] shared UDF volume and "attempt to access beyond end of device" errors
Hi, I am trying to track down an issue in which writes to a UDF volume that is shared via samba result in the following error: attempt to access beyond end of device 0b:01: rw=1, want=1120061380, limit=34181760 The 'want=' value is usually different, and can also be zero in some instances. The volume is an Iomega REV drive formatted using the UDF filesystem. Here are the specifications for my test system: kernel 2.4.26 applied the following patches: - patches-be.dvd.ram-20040816 (from http://iomrrdtools.sourceforge.net/) samba version 3.0.5 The error occurs when I copy a folder with subfolders from a Windows XP (both SP1 and SP2) workstation to a samba share that is linked to the mount point for the Iomega REV drive. It should be noted that I have not been able to reproduce this issue when I connect to the same share using a linux workstation (also running samba 3.0.5). Also, this error does not occur when I am copying files and folders locally on the workstation with the REV drive. The fact that I cannot seem to reproduce the error by copying files and folders locally has me thinking it might be related to samba and XP writing to a samba share. Any help would be appreciated. Thanks, Anthony -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba