www.zeroshell.org Forum Index www.zeroshell.org
Linux Distribution for server and embedded devices
 
 SearchSearch  RegisterRegister  UsergroupsUsergroups 
 ProfileProfile  Log inLog in  Log in to check your private messagesPrivate Message 

ZS - Inodes goes to 0 in /dev/ram2

 
Post new topic   Reply to topic    www.zeroshell.org Forum Index -> ZeroShell
View previous topic :: View next topic  
Author Message
walibix



Joined: 05 Oct 2012
Posts: 7

PostPosted: Fri Oct 05, 2012 7:30 pm    Post subject: ZS - Inodes goes to 0 in /dev/ram2 Reply with quote

Hi

Sorry for my pretty bad english

Here is your problem , we deploy a ZS (1.0beta16) for captive portal on an open wifi , with more than 150 simultannous users

All go fine , we encounter 2 massives problems at average of 70 users :

- First : Inodes (df -i) on /dev/ram2 goes to 0 so ZS can't create anymore files , crash of zscp process because of lacking of place on /dev/ram2 => massive deconnexions

=> How to expand place on /dev/ram2 , the box already have 2Go so it's just a parameter of the ramdrive but where ??

- Second : may be link ? conntrack --buffer-size alert , but we configure conntract_max to 1M+ and have "only" 5k connexions
We don't see conntrack error before the inodes dive to 0 , but we have conntrack error after , even if we delete some /tmp file , that's why i tell maybe it's link ?

=> why do we have so much little files in /tmp ???

Thx
Back to top
View user's profile Send private message
fulvio
Site Admin


Joined: 01 Nov 2006
Posts: 1073

PostPosted: Sat Oct 06, 2012 6:36 am    Post subject: Reply with quote

The / filesystem is prepared and mounted in the initrd image. I'll fix this issue in the next release.
What is your Authenticator Validity set in the captive portal gateway configuration? You should increase it to mitigate the issue.

Regards
Fulvio
Back to top
View user's profile Send private message Send e-mail
walibix



Joined: 05 Oct 2012
Posts: 7

PostPosted: Sat Oct 06, 2012 8:10 am    Post subject: Reply with quote

Authentificator validity : 2 minutes

For /dev/ram2 , we've got a "trick" at the moment :
PreBoot script :
Code:
mount -t tmpfs -o size=1024M tmpfs /tmp

Inodes jump from 5k to 220k , hoping zscp(or someelse) destroy somes files, this command work with 1.0beta16 and 2.0RC1

We're looking for conntrack issue now , the 432000 established is pretty to much high and we already down it to 600 , hoping this error is link with inodes soucy

Thx for help
Back to top
View user's profile Send private message
fulvio
Site Admin


Joined: 01 Nov 2006
Posts: 1073

PostPosted: Sat Oct 06, 2012 11:33 am    Post subject: Reply with quote

Please, let me know if you workaround solves the issue definitively so I can use the same solution in the next release.

Regards
Fulvio
Back to top
View user's profile Send private message Send e-mail
walibix



Joined: 05 Oct 2012
Posts: 7

PostPosted: Sat Oct 06, 2012 2:44 pm    Post subject: Reply with quote

If we stay on the "actual rate" , monday afternoon we'll have the answer
Back to top
View user's profile Send private message
walibix



Joined: 05 Oct 2012
Posts: 7

PostPosted: Mon Oct 08, 2012 10:43 am    Post subject: Reply with quote

Hi

Mid-day report :

=> inodes temporary solution ok , with 5 minutes popup , 4k max inodes
=> with inodes OK , no conntrack error at the moment
=> 100+ user logged

before, best we reach was about 77 users
Back to top
View user's profile Send private message
walibix



Joined: 05 Oct 2012
Posts: 7

PostPosted: Mon Oct 08, 2012 4:12 pm    Post subject: Reply with quote

End of day

more than 130 users connected

no problem , no conntrack error, no inodes soucy (with 220k inodes it will be surprising Twisted Evil )

We observe than Inodes jump when server is in load , as we have wave of users , maybe it have amplify the inodes issue
Back to top
View user's profile Send private message
fulvio
Site Admin


Joined: 01 Nov 2006
Posts: 1073

PostPosted: Mon Oct 08, 2012 5:16 pm    Post subject: Reply with quote

Thanks a lot for this test. I's very important for improving the stability of the captive portal. Next release will include the /tmp as tmpfs.
Regards
Fulvio
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    www.zeroshell.org Forum Index -> ZeroShell All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group