RE: ip_conntrack again

2013-08-21 Thread Sub
-Original Message-
From: Darac Marjal [mailto:mailingl...@darac.org.uk] 
Sent: Wednesday, August 21, 2013 12:47 PM
To: debian-user@lists.debian.org
Subject: Re: ip_conntrack again

On Wed, Aug 21, 2013 at 12:25:11PM +0200, Sub wrote:
> Sorry to bother with this well known topic. But I was not able to find 
> any similar situation in this list archiveā€¦
> 
> 
> ~# wc -l /proc/net/ip_conntrack
> wc: /proc/net/ip_conntrack: No space left on device 0 
> /proc/net/ip_conntrack

This is probably an issue with how wc reads files. Try "cat 
/proc/net/ip_conntrack | wc -l". Files on /proc and /sys aren't really files, 
they just (mostly) behave like them.


Thank you for your reply.
Well, it gives the same result:

~# cat /proc/net/ip_conntrack | wc -l
cat: /proc/net/ip_conntrack: No space left on device
0


Any other ideas? How can I resolve this problem? What more can I do?



--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/010b01ce9e6c$a03a3970$e0aeac50$@net.pl



ip_conntrack again

2013-08-21 Thread Sub
Sorry to bother with this well known topic. But I was not able to find any 
similar situation in this list archiveā€¦


~# wc -l /proc/net/ip_conntrack
wc: /proc/net/ip_conntrack: No space left on device
0 /proc/net/ip_conntrack

So I checked ip_conntrack_max In my next step:

# sysctl net.ipv4.netfilter.ip_conntrack_max
net.ipv4.netfilter.ip_conntrack_max = 8192

But this is just a small routing Linux box (512MB RAM and dual Intel CPU 
3.20GHz) with couple of PC connected behind ipmasq. The LAN traffic is usually 
very low and was close to nothing during these tests.

So I tried to check it using:  

~# cat /proc/sys/net/ipv4/netfilter/ip_conntrack_count
93

And it is just 93 which is far away from conntrack_max=8192!

Of course this is not a problem of HDD capacity:

~# df -h
File system size used avail. %us. mounted
/dev/sda1 1,4G  366M  969M  28% /
tmpfs 248M  8,0K  248M   1% /lib/init/rw
udev   10M  132K  9,9M   2% /dev
tmpfs 248M 0  248M   0% /dev/shm
/dev/sda8  64G   40G   22G  66% /home
/dev/sda7 373M   11M  343M   3% /tmp
/dev/sda9 3,6G  1,9G  1,5G  56% /usr
/dev/sda5 2,8G  1,4G  1,3G  52% /var


Also this "/proc/net/ip_conntrack: No space left on device" appears right after 
the box reboot.

Any idea what else I could check to solve this problem?

I will be very thankful for any tip or helping hand

Tnx in advance,


Sub


--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/00f001ce9e58$b840$28c0$@net.pl



Leafpad 0.8.17 and CSV files format

2009-11-24 Thread sub phil
Leafpad 0.8.17

Just want to mention, that it would be pretty easy for Leafpad to support
CSV files as they are just plain text files, which must be aligned in
columns.

This would made Leafpad a light csv viewer.

Algorithm could be.
1/ Parse first line to count number of columns and define each column width.
2/ Parse all subsequent lines to find the max width for each columns.
3/ Display the columns with the appropriate width.

Example
col1;col2;col3
1234;a;airoro
12345;abcdefg;jfd

Would results into(hope file format is kept in emailing)
col1  ;col2   ;col3
1234 ;a  ;airoro
12345;abcdefg;jfd


Thanks for Leafpad.