1838105 Members
3786 Online
110124 Solutions
New Discussion

Samba problem in HP-UX

 
Pepe Jimenez Muñoz
Frequent Advisor

Samba problem in HP-UX

Hi,

we get the next message in log.machinename:

[2004/05/04 09:31:43, 0] lib/util.c:(660)
Memory allocation error: failed to expand to 17408 bytes

and the user can´t browse the share.

Some help, please
ppviso
2 REPLIES 2
Stefan Farrelly
Honored Contributor

Re: Samba problem in HP-UX

The "memory allocation error" comes from the realloc function of samba. So, it can be many things.
One thing for sure. Directories with lots of files (500+) are known to be a hassle to the filesystem AND the softwares. That's why many softwares (like squid, among others) hash their data dir content among multiple dirs.

When a Windows client opens a directory, samba has to list it's entire content. This might be the problem.

So, it could be one reason.

One thing you might want to try though, is to check how much RAM your samba process is allowed to allocate. Get a shell and type :

ulimit -a

There is a chance that your samba, getting more used, now claims more memory than what the system allows it to use.

i think you should try upping ulimit -n from a shell, then restart samba from this shell and retry.

Im from Palmerston North, New Zealand, but somehow ended up in London...
Pepe Jimenez Muñoz
Frequent Advisor

Re: Samba problem in HP-UX

Thank's Stefan, ulimit -a tell us that no restriction to memory allocation.

We restart samba and all it's OK.

If problem persist I post another question.

ppviso