Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > alt.os.linux > #59252 > unrolled thread
| Started by | Soviet_Mario <SovietMario@CCCP.MIR> |
|---|---|
| First post | 2019-10-08 19:17 +0200 |
| Last post | 2019-10-11 03:47 +0200 |
| Articles | 20 on this page of 105 — 20 participants |
Back to article view | Back to alt.os.linux
very simple editor for HUGE text files (500-1000 MB of plain text) Soviet_Mario <SovietMario@CCCP.MIR> - 2019-10-08 19:17 +0200
Re: very simple editor for HUGE text files (500-1000 MB of plain text) Grant Taylor <gtaylor@tnetconsulting.net> - 2019-10-08 11:23 -0600
Re: very simple editor for HUGE text files (500-1000 MB of plain text) "J.O. Aho" <user@example.net> - 2019-10-08 19:40 +0200
Re: very simple editor for HUGE text files (500-1000 MB of plain text) Soviet_Mario <SovietMario@CCCP.MIR> - 2019-10-08 19:47 +0200
Re: very simple editor for HUGE text files (500-1000 MB of plain text) "Lyle H. Gray" <lylefitzw@no.spam.gmail.com.invalid> - 2019-10-08 13:41 -0500
Re: very simple editor for HUGE text files (500-1000 MB of plain text) William Unruh <unruh@invalid.ca> - 2019-10-08 21:01 +0000
Re: very simple editor for HUGE text files (500-1000 MB of plain text) Chris Elvidge <chris@mshome.net> - 2019-10-10 09:59 +0100
Re: very simple editor for HUGE text files (500-1000 MB of plain text) "J.O. Aho" <user@example.net> - 2019-10-08 21:50 +0200
Re: very simple editor for HUGE text files (500-1000 MB of plain text) Soviet_Mario <SovietMario@CCCP.MIR> - 2019-10-08 23:15 +0200
Re: very simple editor for HUGE text files (500-1000 MB of plain text) Grant Taylor <gtaylor@tnetconsulting.net> - 2019-10-08 20:20 -0600
Re: very simple editor for HUGE text files (500-1000 MB of plain text) Melzzzzz <Melzzzzz@zzzzz.com> - 2019-10-09 06:09 +0000
Re: very simple editor for HUGE text files (500-1000 MB of plain text) RonB <ronb02NOSPAM@gmail.com> - 2019-10-10 19:24 +0000
Re: very simple editor for HUGE text files (500-1000 MB of plain text) "J.O. Aho" <user@example.net> - 2019-10-09 07:01 +0200
Re: very simple editor for HUGE text files (500-1000 MB of plain text) Soviet_Mario <SovietMario@CCCP.MIR> - 2019-10-09 14:14 +0200
Re: very simple editor for HUGE text files (500-1000 MB of plain text) "J.O. Aho" <user@example.net> - 2019-10-09 19:28 +0200
Re: very simple editor for HUGE text files (500-1000 MB of plain text) Soviet_Mario <SovietMario@CCCP.MIR> - 2019-10-09 20:17 +0200
Re: very simple editor for HUGE text files (500-1000 MB of plain text) Melzzzzz <Melzzzzz@zzzzz.com> - 2019-10-09 06:07 +0000
Re: very simple editor for HUGE text files (500-1000 MB of plain text) Soviet_Mario <SovietMario@CCCP.MIR> - 2019-10-09 14:17 +0200
Re: very simple editor for HUGE text files (500-1000 MB of plain text) Aragorn <thorongil@telenet.be> - 2019-10-09 14:52 +0200
Re: very simple editor for HUGE text files (500-1000 MB of plain text) Bud Frede <frede@mouse-potato.com> - 2019-10-13 08:49 -0400
Re: very simple editor for HUGE text files (500-1000 MB of plain text) "Carlos E.R." <robin_listas@es.invalid> - 2019-10-08 19:43 +0200
Re: very simple editor for HUGE text files (500-1000 MB of plain text) Soviet_Mario <SovietMario@CCCP.MIR> - 2019-10-08 19:47 +0200
Re: very simple editor for HUGE text files (500-1000 MB of plain text) "Lyle H. Gray" <lylefitzw@no.spam.gmail.com.invalid> - 2019-10-08 13:39 -0500
Re: very simple editor for HUGE text files (500-1000 MB of plain text) "Carlos E.R." <robin_listas@es.invalid> - 2019-10-09 22:23 +0200
Re: very simple editor for HUGE text files (500-1000 MB of plain text) John Hasler <jhasler@newsguy.com> - 2019-10-09 17:42 -0500
Re: very simple editor for HUGE text files (500-1000 MB of plain text) gazelle@shell.xmission.com (Kenny McCormack) - 2019-10-10 00:42 +0000
Re: very simple editor for HUGE text files (500-1000 MB of plain text) Soviet_Mario <SovietMario@CCCP.MIR> - 2019-10-10 08:42 +0200
Re: very simple editor for HUGE text files (500-1000 MB of plain text) Aragorn <thorongil@telenet.be> - 2019-10-10 09:21 +0200
Re: very simple editor for HUGE text files (500-1000 MB of plain text) Soviet_Mario <SovietMario@CCCP.MIR> - 2019-10-10 12:09 +0200
Re: very simple editor for HUGE text files (500-1000 MB of plain text) Soviet_Mario <SovietMario@CCCP.MIR> - 2019-10-10 12:14 +0200
Re: very simple editor for HUGE text files (500-1000 MB of plain text) "Carlos E.R." <robin_listas@es.invalid> - 2019-10-10 15:07 +0200
Re: very simple editor for HUGE text files (500-1000 MB of plain text) Chris Elvidge <chris@mshome.net> - 2019-10-10 14:17 +0100
Re: very simple editor for HUGE text files (500-1000 MB of plain text) Soviet_Mario <SovietMario@CCCP.MIR> - 2019-10-10 16:06 +0200
Re: very simple editor for HUGE text files (500-1000 MB of plain text) "Carlos E.R." <robin_listas@es.invalid> - 2019-10-10 21:42 +0200
Re: very simple editor for HUGE text files (500-1000 MB of plain text) "Cybe R. Wizard" <cybe_r_wizard@WizardsTower.invalid> - 2019-10-10 13:17 -0500
Re: very simple editor for HUGE text files (500-1000 MB of plain text) Soviet_Mario <SovietMario@CCCP.MIR> - 2019-10-10 20:54 +0200
Re: very simple editor for HUGE text files (500-1000 MB of plain text) John Hasler <jhasler@newsguy.com> - 2019-10-10 19:01 -0500
Re: very simple editor for HUGE text files (500-1000 MB of plain text) Aragorn <thorongil@telenet.be> - 2019-10-11 08:53 +0200
Re: very simple editor for HUGE text files (500-1000 MB of plain text) Soviet_Mario <SovietMario@CCCP.MIR> - 2019-10-11 11:08 +0200
Re: very simple editor for HUGE text files (500-1000 MB of plain text) Soviet_Mario <SovietMario@CCCP.MIR> - 2019-10-11 11:06 +0200
Re: very simple editor for HUGE text files (500-1000 MB of plain text) Dan Purgert <dan@djph.net> - 2019-10-11 10:46 +0000
Re: very simple editor for HUGE text files (500-1000 MB of plain text) John Hasler <jhasler@newsguy.com> - 2019-10-11 11:17 -0500
Re: very simple editor for HUGE text files (500-1000 MB of plain text) Dan Purgert <dan@djph.net> - 2019-10-11 17:32 +0000
Re: very simple editor for HUGE text files (500-1000 MB of plain text) RonB <ronb02NOSPAM@gmail.com> - 2019-10-11 03:12 +0000
Re: very simple editor for HUGE text files (500-1000 MB of plain text) "Carlos E.R." <robin_listas@es.invalid> - 2019-10-11 08:34 +0200
Re: very simple editor for HUGE text files (500-1000 MB of plain text) Soviet_Mario <SovietMario@CCCP.MIR> - 2019-10-11 11:19 +0200
Re: very simple editor for HUGE text files (500-1000 MB of plain text) "Carlos E.R." <robin_listas@es.invalid> - 2019-10-11 11:55 +0200
Re: very simple editor for HUGE text files (500-1000 MB of plain text) Mike Easter <MikeE@ster.invalid> - 2019-10-10 11:56 -0700
Re: very simple editor for HUGE text files (500-1000 MB of plain text) "Cybe R. Wizard" <cybe_r_wizard@WizardsTower.invalid> - 2019-10-10 14:38 -0500
Re: very simple editor for HUGE text files (500-1000 MB of plain text) RonB <ronb02NOSPAM@gmail.com> - 2019-10-11 03:22 +0000
Re: very simple editor for HUGE text files (500-1000 MB of plain text) RonB <ronb02NOSPAM@gmail.com> - 2019-10-11 03:18 +0000
Re: very simple editor for HUGE text files (500-1000 MB of plain text) Bud Frede <frede@mouse-potato.com> - 2019-10-13 09:57 -0400
Re: very simple editor for HUGE text files (500-1000 MB of plain text) RonB <ronb02NOSPAM@gmail.com> - 2019-10-11 03:04 +0000
Re: very simple editor for HUGE text files (500-1000 MB of plain text) Soviet_Mario <SovietMario@CCCP.MIR> - 2019-10-11 11:23 +0200
Re: very simple editor for HUGE text files (500-1000 MB of plain text) RonB <ronb02NOSPAM@gmail.com> - 2019-10-11 21:29 +0000
Re: very simple editor for HUGE text files (500-1000 MB of plain text) Jasen Betts <jasen@xnet.co.nz> - 2019-10-11 03:48 +0000
Re: very simple editor for HUGE text files (500-1000 MB of plain text) Soviet_Mario <SovietMario@CCCP.MIR> - 2019-10-11 11:28 +0200
Re: very simple editor for HUGE text files (500-1000 MB of plain text) "Carlos E.R." <robin_listas@es.invalid> - 2019-10-11 11:56 +0200
Re: very simple editor for HUGE text files (500-1000 MB of plain text) F Russell <fr@random.info> - 2019-10-11 10:12 +0000
Re: very simple editor for HUGE text files (500-1000 MB of plain text) Soviet_Mario <SovietMario@CCCP.MIR> - 2019-10-11 13:25 +0200
Re: very simple editor for HUGE text files (500-1000 MB of plain text) William Unruh <unruh@invalid.ca> - 2019-10-11 11:52 +0000
Re: very simple editor for HUGE text files (500-1000 MB of plain text) Dan Purgert <dan@djph.net> - 2019-10-11 11:55 +0000
Re: very simple editor for HUGE text files (500-1000 MB of plain text) "F. Russell" <frussell@random.info> - 2019-10-11 12:19 +0000
Re: very simple editor for HUGE text files (500-1000 MB of plain text) Dan Purgert <dan@djph.net> - 2019-10-11 12:21 +0000
Re: very simple editor for HUGE text files (500-1000 MB of plain text) "F. Russell" <frussell@random.info> - 2019-10-11 12:43 +0000
Re: very simple editor for HUGE text files (500-1000 MB of plain text) Dan Purgert <dan@djph.net> - 2019-10-11 13:15 +0000
Re: very simple editor for HUGE text files (500-1000 MB of plain text) Bud Frede <frede@mouse-potato.com> - 2019-10-13 10:27 -0400
Re: very simple editor for HUGE text files (500-1000 MB of plain text) "Carlos E.R." <robin_listas@es.invalid> - 2019-10-13 19:51 +0200
Re: very simple editor for HUGE text files (500-1000 MB of plain text) John Hasler <jhasler@newsguy.com> - 2019-10-13 19:43 -0500
Re: very simple editor for HUGE text files (500-1000 MB of plain text) "Cybe R. Wizard" <cybe_r_wizard@WizardsTower.invalid> - 2019-10-11 10:11 -0500
Re: very simple editor for HUGE text files (500-1000 MB of plain text) "Carlos E.R." <robin_listas@es.invalid> - 2019-10-11 19:45 +0200
Re: very simple editor for HUGE text files (500-1000 MB of plain text) "Carlos E.R." <robin_listas@es.invalid> - 2019-10-11 19:15 +0200
Re: very simple editor for HUGE text files (500-1000 MB of plain text) RonB <ronb02NOSPAM@gmail.com> - 2019-10-11 21:14 +0000
Re: very simple editor for HUGE text files (500-1000 MB of plain text) RonB <ronb02NOSPAM@gmail.com> - 2019-10-11 21:08 +0000
Re: very simple editor for HUGE text files (500-1000 MB of plain text) Soviet_Mario <SovietMario@CCCP.MIR> - 2019-10-12 10:07 +0200
Re: very simple editor for HUGE text files (500-1000 MB of plain text) "Carlos E.R." <robin_listas@es.invalid> - 2019-10-12 14:29 +0200
Re: very simple editor for HUGE text files (500-1000 MB of plain text) RonB <ronb02NOSPAM@gmail.com> - 2019-10-12 22:51 +0000
Re: very simple editor for HUGE text files (500-1000 MB of plain text) "Carlos E.R." <robin_listas@es.invalid> - 2019-10-13 19:53 +0200
Re: very simple editor for HUGE text files (500-1000 MB of plain text) Soviet_Mario <SovietMario@CCCP.MIR> - 2019-10-13 20:49 +0200
Re: very simple editor for HUGE text files (500-1000 MB of plain text) William Unruh <unruh@invalid.ca> - 2019-10-10 19:07 +0000
Re: very simple editor for HUGE text files (500-1000 MB of plain text) RonB <ronb02NOSPAM@gmail.com> - 2019-10-11 03:01 +0000
Re: very simple editor for HUGE text files (500-1000 MB of plain text) "Carlos E.R." <robin_listas@es.invalid> - 2019-10-11 08:38 +0200
Re: very simple editor for HUGE text files (500-1000 MB of plain text) RonB <ronb02NOSPAM@gmail.com> - 2019-10-11 02:59 +0000
Re: very simple editor for HUGE text files (500-1000 MB of plain text) Soviet_Mario <SovietMario@CCCP.MIR> - 2019-10-11 11:30 +0200
Re: very simple editor for HUGE text files (500-1000 MB of plain text) Dan Purgert <dan@djph.net> - 2019-10-11 11:02 +0000
Re: very simple editor for HUGE text files (500-1000 MB of plain text) RonB <ronb02NOSPAM@gmail.com> - 2019-10-11 21:34 +0000
Re: very simple editor for HUGE text files (500-1000 MB of plain text) Bud Frede <frede@mouse-potato.com> - 2019-10-13 10:12 -0400
Re: very simple editor for HUGE text files (500-1000 MB of plain text) Dan Purgert <dan@djph.net> - 2019-10-13 15:06 +0000
Re: very simple editor for HUGE text files (500-1000 MB of plain text) RonB <ronb02NOSPAM@gmail.com> - 2019-10-11 21:31 +0000
Re: very simple editor for HUGE text files (500-1000 MB of plain text) Bud Frede <frede@mouse-potato.com> - 2019-10-13 10:05 -0400
Re: very simple editor for HUGE text files (500-1000 MB of plain text) Bud Frede <frede@mouse-potato.com> - 2019-10-13 09:47 -0400
Re: very simple editor for HUGE text files (500-1000 MB of plain text) "Carlos E.R." <robin_listas@es.invalid> - 2019-10-13 19:58 +0200
Re: very simple editor for HUGE text files (500-1000 MB of plain text) F Russell <fr@random.info> - 2019-10-08 19:31 +0000
Re: very simple editor for HUGE text files (500-1000 MB of plain text) Soviet_Mario <SovietMario@CCCP.MIR> - 2019-10-08 23:19 +0200
Re: very simple editor for HUGE text files (500-1000 MB of plain text) F Russell <fr@random.info> - 2019-10-08 21:31 +0000
Re: very simple editor for HUGE text files (500-1000 MB of plain text) Dan Purgert <dan@djph.net> - 2019-10-08 23:11 +0000
Re: very simple editor for HUGE text files (500-1000 MB of plain text) "Carlos E.R." <robin_listas@es.invalid> - 2019-10-09 22:27 +0200
Re: very simple editor for HUGE text files (500-1000 MB of plain text) "Cybe R. Wizard" <cybe_r_wizard@WizardsTower.invalid> - 2019-10-09 23:37 -0500
Re: very simple editor for HUGE text files (500-1000 MB of plain text) "Carlos E.R." <robin_listas@es.invalid> - 2019-10-10 15:09 +0200
Re: very simple editor for HUGE text files (500-1000 MB of plain text) "Cybe R. Wizard" <cybe_r_wizard@WizardsTower.invalid> - 2019-10-10 13:20 -0500
Re: very simple editor for HUGE text files (500-1000 MB of plain text) Aragorn <thorongil@telenet.be> - 2019-10-11 08:57 +0200
Re: very simple editor for HUGE text files (500-1000 MB of plain text) "Cybe R. Wizard" <cybe_r_wizard@WizardsTower.invalid> - 2019-10-11 09:51 -0500
Re: very simple editor for HUGE text files (500-1000 MB of plain text) Bud Frede <frede@mouse-potato.com> - 2019-10-13 09:35 -0400
Re: very simple editor for HUGE text files (500-1000 MB of plain text) Paul <nospam@needed.invalid> - 2019-10-10 21:21 -0400
Re: very simple editor for HUGE text files (500-1000 MB of plain text) "Carlos E.R." <robin_listas@es.invalid> - 2019-10-11 03:47 +0200
Page 1 of 6 [1] 2 3 4 5 6 Next page →
| From | Soviet_Mario <SovietMario@CCCP.MIR> |
|---|---|
| Date | 2019-10-08 19:17 +0200 |
| Subject | very simple editor for HUGE text files (500-1000 MB of plain text) |
| Message-ID | <qnigc8$flq$1@dont-email.me> |
Is it there such a thing ? Even a simple "viewer" (but with minimal, but FAST, search capability) could do I'm generating text log files upwards of 300-400 MB and LbO gets stuck sucking all memory. After all it is overkill for just viewing and scrolling fast the text. I have a lot of small editors, none of which fit for management of huge text files. Meanwhile I'm writing from scratch a patch reading fixed size frames with random access (and trimming broken head/tail textlines from the frame) but this is ugly :\ -- 1) Resistere, resistere, resistere. 2) Se tutti pagano le tasse, le tasse le pagano tutti Soviet_Mario - (aka Gatto_Vizzato)
[toc] | [next] | [standalone]
| From | Grant Taylor <gtaylor@tnetconsulting.net> |
|---|---|
| Date | 2019-10-08 11:23 -0600 |
| Message-ID | <qnign5$8ki$1@tncsrv09.home.tnetconsulting.net> |
| In reply to | #59252 |
On 10/8/19 11:17 AM, Soviet_Mario wrote: > Is it there such a thing ? I've always had good experiences using sed / grep / awk / vi(m) / less / et al. I seldom try to open big files inside of vi(m), but when I do, it usually works with little problem. I do a LOT of this at the command line with sed / grep / awk -- Grant. . . . unix || die
[toc] | [prev] | [next] | [standalone]
| From | "J.O. Aho" <user@example.net> |
|---|---|
| Date | 2019-10-08 19:40 +0200 |
| Message-ID | <h04017Frk1gU1@mid.individual.net> |
| In reply to | #59252 |
On 08/10/2019 19.17, Soviet_Mario wrote: > > Is it there such a thing ? > Even a simple "viewer" (but with minimal, but FAST, search capability) > could do grep + sed ? > I'm generating text log files upwards of 300-400 MB A bit OT, but why not have a more frequent log rotation, so that the files won't get too large for you. -- //Aho
[toc] | [prev] | [next] | [standalone]
| From | Soviet_Mario <SovietMario@CCCP.MIR> |
|---|---|
| Date | 2019-10-08 19:47 +0200 |
| Message-ID | <qnii3l$pss$1@dont-email.me> |
| In reply to | #59254 |
Il 08/10/19 19:40, J.O. Aho ha scritto: > On 08/10/2019 19.17, Soviet_Mario wrote: >> >> Is it there such a thing ? >> Even a simple "viewer" (but with minimal, but FAST, search >> capability) could do > > grep + sed ? > > >> I'm generating text log files upwards of 300-400 MB > > A bit OT, but why not have a more frequent log rotation, so > that the files won't get too large for you. aehm ... they are born in one shot as large :\ :\ (I'm in debug phase ... hopably in a future once the programs works reliably, much logging could be stripped in some lighter form) :\ Ah, I reply here also to Grant All the suggested editors are CLI ? I don't feel comfortable with cli programs alas. > -- 1) Resistere, resistere, resistere. 2) Se tutti pagano le tasse, le tasse le pagano tutti Soviet_Mario - (aka Gatto_Vizzato)
[toc] | [prev] | [next] | [standalone]
| From | "Lyle H. Gray" <lylefitzw@no.spam.gmail.com.invalid> |
|---|---|
| Date | 2019-10-08 13:41 -0500 |
| Message-ID | <XnsAAE295689FCEFgraynoibisspamcsumas@216.166.97.131> |
| In reply to | #59256 |
Soviet_Mario <SovietMario@CCCP.MIR> wrote in news:qnii3l$pss$1@dont- email.me: > All the suggested editors are CLI ? > I don't feel comfortable with cli programs alas. Unfortunately for your requirements, most of the GUI editors have limits on how large a file they can work with.
[toc] | [prev] | [next] | [standalone]
| From | William Unruh <unruh@invalid.ca> |
|---|---|
| Date | 2019-10-08 21:01 +0000 |
| Message-ID | <qnitfq$1j3$2@dont-email.me> |
| In reply to | #59259 |
On 2019-10-08, Lyle H. Gray <lylefitzw@no.spam.gmail.com.invalid> wrote: > Soviet_Mario <SovietMario@CCCP.MIR> wrote in news:qnii3l$pss$1@dont- > email.me: > >> All the suggested editors are CLI ? >> I don't feel comfortable with cli programs alas. > > Unfortunately for your requirements, most of the GUI editors have limits on > how large a file they can work with. >
[toc] | [prev] | [next] | [standalone]
| From | Chris Elvidge <chris@mshome.net> |
|---|---|
| Date | 2019-10-10 09:59 +0100 |
| Message-ID | <qnmru5$sk9$1@dont-email.me> |
| In reply to | #59259 |
On 08/10/2019 19:41, Lyle H. Gray wrote: > Soviet_Mario <SovietMario@CCCP.MIR> wrote in news:qnii3l$pss$1@dont- > email.me: > >> All the suggested editors are CLI ? >> I don't feel comfortable with cli programs alas. > > Unfortunately for your requirements, most of the GUI editors have limits on > how large a file they can work with. > Have you thought about gVim? GUI interface on CLI editor. VIM can operate in a text based environment but there is a version known as gVim which operates in a GUI environment. The latest version of gVim is available for many operating systems and has full mouse support, clipboard support is available where applicable. Here is the gVim homepage: http://www.vim.org/. https://supportweb.cs.bham.ac.uk/documentation/tutorials/docsystem/build/tutorials/gvim/gvim.html -- Chris Elvidge, England
[toc] | [prev] | [next] | [standalone]
| From | "J.O. Aho" <user@example.net> |
|---|---|
| Date | 2019-10-08 21:50 +0200 |
| Message-ID | <h047jtFt722U1@mid.individual.net> |
| In reply to | #59256 |
On 08/10/2019 19.47, Soviet_Mario wrote: > Il 08/10/19 19:40, J.O. Aho ha scritto: >> On 08/10/2019 19.17, Soviet_Mario wrote: >>> I'm generating text log files upwards of 300-400 MB >> >> A bit OT, but why not have a more frequent log rotation, so that the >> files won't get too large for you. > > aehm ... they are born in one shot as large :\ :\ (I'm in debug phase > ... hopably in a future once the programs works reliably, much logging > could be stripped in some lighter form) :\ If you have a more frequent log rotation, then you get more files but each file is smaller. If you use something like nlog, log4j, log4cpp and so on, it's quite simple to set a max size on the log file, each time it the log file will become larger than the limit, a new log file is created and the new data is written to it. Also you can log things to different files, for example one file with debug information another with error messages and so on. If you are using logger, much depends on the log daemon you have installed, but most have similar capabilities as the above ones. I would recommend you to skip trying to make your own log functionality, it will be most likely a resource hog. Once I changed a home brewed log system with log rotations to use log4cpp, I managed to save around 40% CPU usage and speed the application up 3 times. The home brewed log system was quite well written, not an indians 5 minute work. So maybe take some time and fix the logging first. > Ah, I reply here also to Grant > > All the suggested editors are CLI ? > I don't feel comfortable with cli programs alas. Cli based application tend to be smaller and faster than GUI, for example less ain't hard to use, / for searching, n for next and N for the previous and q for quit. For more info, just read the man page. -- //Aho
[toc] | [prev] | [next] | [standalone]
| From | Soviet_Mario <SovietMario@CCCP.MIR> |
|---|---|
| Date | 2019-10-08 23:15 +0200 |
| Message-ID | <qniua6$9vj$1@dont-email.me> |
| In reply to | #59268 |
Il 08/10/19 21:50, J.O. Aho ha scritto: > On 08/10/2019 19.47, Soviet_Mario wrote: >> Il 08/10/19 19:40, J.O. Aho ha scritto: >>> On 08/10/2019 19.17, Soviet_Mario wrote: > >>>> I'm generating text log files upwards of 300-400 MB >>> >>> A bit OT, but why not have a more frequent log rotation, >>> so that the files won't get too large for you. >> >> aehm ... they are born in one shot as large :\ :\ (I'm in >> debug phase ... hopably in a future once the programs >> works reliably, much logging could be stripped in some >> lighter form) :\ > > If you have a more frequent log rotation, then you get more > files but each file is smaller. If you use something like > nlog, log4j, log4cpp and so on, it's quite simple to set a > max size on the log file, each time it the log file will > become larger than the limit, a new log file is created and > the new data is written to it. Also you can log things to > different files, for example one file with debug information > another with error messages and so on. oh sorry i feel very dumb I completely misunderstood. Yes, splitting could be easily achieved > > If you are using logger, much depends on the log daemon you > have installed, but most have similar capabilities as the > above ones. I don't know what it is I open a file and write actions of the programs in text form (i also just discovered one bug that maybe was very heavy for LbO : i used binary write and asciiZ strings instead of newline terminated ones). > > I would recommend you to skip trying to make your own log > functionality, it will be most likely a resource hog. well within a program written in high level language writing text to a file is almost as natural as breathing :\ but I'm using gambas again, not C/C++ (and I'm not porting it as it is disk-intensive and I'd get no improvement stat-ing files) > Once I > changed a home brewed log system with log rotations to use > log4cpp, I managed to save around 40% CPU usage and speed > the application up 3 times. The home brewed log system was > quite well written, not an indians 5 minute work. > > So maybe take some time and fix the logging first. splitting is a reasonable choice. Also an internal viewer page-frame based is Boh ... i'll see to it > > >> Ah, I reply here also to Grant >> >> All the suggested editors are CLI ? >> I don't feel comfortable with cli programs alas. > > Cli based application tend to be smaller and faster than > GUI, for example less ain't hard to use, / for searching, n > for next and N for the previous and q for quit. For more > info, just read the man page. oh once I read an anecdote on VI/VIM during pre-os fixing of boot in a shell, where people were not even able to exit from VI/VIM ... well, I completely saw myself in the mirror (in that I actually found in such a situation and, at last, I disconnected the plug :) :) :) > -- 1) Resistere, resistere, resistere. 2) Se tutti pagano le tasse, le tasse le pagano tutti Soviet_Mario - (aka Gatto_Vizzato)
[toc] | [prev] | [next] | [standalone]
| From | Grant Taylor <gtaylor@tnetconsulting.net> |
|---|---|
| Date | 2019-10-08 20:20 -0600 |
| Message-ID | <qnjg4r$ot2$1@tncsrv09.home.tnetconsulting.net> |
| In reply to | #59276 |
On 10/8/19 3:15 PM, Soviet_Mario wrote: > oh once I read an anecdote on VI/VIM during pre-os fixing of boot in a > shell, where people were not even able to exit from VI/VIM ... well, I > completely saw myself in the mirror (in that I actually found in such a > situation and, at last, I disconnected the plug :) :) :) The basics of vi(m) aren't that bad. IMHO they are no worse than Emacs. If you spend (up to) an hour learning the basics once and at least 5 minutes using vi(m) a year, you'll be set for most of the basic edits that you need to make. -- Grant. . . . unix || die
[toc] | [prev] | [next] | [standalone]
| From | Melzzzzz <Melzzzzz@zzzzz.com> |
|---|---|
| Date | 2019-10-09 06:09 +0000 |
| Message-ID | <SQenF.2533130$dw4.1569896@fx12.am4> |
| In reply to | #59282 |
On 2019-10-09, Grant Taylor <gtaylor@tnetconsulting.net> wrote: > On 10/8/19 3:15 PM, Soviet_Mario wrote: >> oh once I read an anecdote on VI/VIM during pre-os fixing of boot in a >> shell, where people were not even able to exit from VI/VIM ... well, I >> completely saw myself in the mirror (in that I actually found in such a >> situation and, at last, I disconnected the plug :) :) :) > > The basics of vi(m) aren't that bad. IMHO they are no worse than Emacs. > > If you spend (up to) an hour learning the basics once and at least 5 > minutes using vi(m) a year, you'll be set for most of the basic edits > that you need to make. he just have to learn commands esc : then x or wq > > > -- press any key to continue or any other to quit... U ničemu ja ne uživam kao u svom statusu INVALIDA -- Zli Zec Na divljem zapadu i nije bilo tako puno nasilja, upravo zato jer su svi bili naoruzani. -- Mladen Gogala
[toc] | [prev] | [next] | [standalone]
| From | RonB <ronb02NOSPAM@gmail.com> |
|---|---|
| Date | 2019-10-10 19:24 +0000 |
| Message-ID | <qno0gs$ras$1@dont-email.me> |
| In reply to | #59282 |
On 2019-10-09, Grant Taylor <gtaylor@tnetconsulting.net> wrote: > On 10/8/19 3:15 PM, Soviet_Mario wrote: >> oh once I read an anecdote on VI/VIM during pre-os fixing of boot in a >> shell, where people were not even able to exit from VI/VIM ... well, I >> completely saw myself in the mirror (in that I actually found in such a >> situation and, at last, I disconnected the plug :) :) :) > > The basics of vi(m) aren't that bad. IMHO they are no worse than Emacs. > > If you spend (up to) an hour learning the basics once and at least 5 > minutes using vi(m) a year, you'll be set for most of the basic edits > that you need to make. You don't even have to use vi(m) in the CLI. I (personally) use JOE (its Jstar variant) for just about everything. But there's many CLI editors to choose from. I don't know why anyone would limit themselves to the GUI. -- "People are innocent until alleged to be involved in some kind of criminal activity." — John Brennan, ex-CIA Director
[toc] | [prev] | [next] | [standalone]
| From | "J.O. Aho" <user@example.net> |
|---|---|
| Date | 2019-10-09 07:01 +0200 |
| Message-ID | <h057tvF4u7uU1@mid.individual.net> |
| In reply to | #59276 |
On 08/10/2019 23.15, Soviet_Mario wrote: > Il 08/10/19 21:50, J.O. Aho ha scritto: >> On 08/10/2019 19.47, Soviet_Mario wrote: >>> Il 08/10/19 19:40, J.O. Aho ha scritto: >>>> On 08/10/2019 19.17, Soviet_Mario wrote: >> >>>>> I'm generating text log files upwards of 300-400 MB >>>> >>>> A bit OT, but why not have a more frequent log rotation, so that the >>>> files won't get too large for you. >>> >>> aehm ... they are born in one shot as large :\ :\ (I'm in debug phase >>> ... hopably in a future once the programs works reliably, much >>> logging could be stripped in some lighter form) :\ >> >> If you have a more frequent log rotation, then you get more files but >> each file is smaller. If you use something like nlog, log4j, log4cpp >> and so on, it's quite simple to set a max size on the log file, each >> time it the log file will become larger than the limit, a new log file >> is created and the new data is written to it. Also you can log things >> to different files, for example one file with debug information >> another with error messages and so on. > > oh sorry i feel very dumb I completely misunderstood. > Yes, splitting could be easily achieved > > >> >> If you are using logger, much depends on the log daemon you have >> installed, but most have similar capabilities as the above ones. > > I don't know what it is man logger > I open a file and write actions of the programs in text form (i also > just discovered one bug that maybe was very heavy for LbO : i used > binary write and asciiZ strings instead of newline terminated ones). This is resource heavy way and your program will wait till the write action has ben done. >> I would recommend you to skip trying to make your own log >> functionality, it will be most likely a resource hog. > > well within a program written in high level language writing text to a > file is almost as natural as breathing :\ That's what a lot people thinks, and one reason why you should avoid home brewed logging, you need to have logging running in a separate thread, so it won't block your application while writing to disk and you want to do the with limited disk writes and if you ignore a type of logging you want as little as possible done. nlog/log4XXX are projects who been dedicated for logging for so many years that they have managed to solve the problems and it's less work to get nlog to work than write to a file, so not much point in doing the wrong way. > but I'm using gambas again, not C/C++ (and I'm not porting it as it is > disk-intensive and I'd get no improvement stat-ing files) Then use logger, "man logger" and config your rsyslog/syslog-ng/syslogd or what your system uses and set up how you want to log rotate in your logrotate configuration. -- //Aho
[toc] | [prev] | [next] | [standalone]
| From | Soviet_Mario <SovietMario@CCCP.MIR> |
|---|---|
| Date | 2019-10-09 14:14 +0200 |
| Message-ID | <qnkiua$jpn$1@dont-email.me> |
| In reply to | #59283 |
Il 09/10/19 07:01, J.O. Aho ha scritto: > On 08/10/2019 23.15, Soviet_Mario wrote: >> Il 08/10/19 21:50, J.O. Aho ha scritto: >>> On 08/10/2019 19.47, Soviet_Mario wrote: >>>> Il 08/10/19 19:40, J.O. Aho ha scritto: >>>>> On 08/10/2019 19.17, Soviet_Mario wrote: >>> >>>>>> I'm generating text log files upwards of 300-400 MB >>>>> >>>>> A bit OT, but why not have a more frequent log >>>>> rotation, so that the files won't get too large for you. >>>> >>>> aehm ... they are born in one shot as large :\ :\ (I'm >>>> in debug phase ... hopably in a future once the programs >>>> works reliably, much logging could be stripped in some >>>> lighter form) :\ >>> >>> If you have a more frequent log rotation, then you get >>> more files but each file is smaller. If you use something >>> like nlog, log4j, log4cpp and so on, it's quite simple to >>> set a max size on the log file, each time it the log file >>> will become larger than the limit, a new log file is >>> created and the new data is written to it. Also you can >>> log things to different files, for example one file with >>> debug information another with error messages and so on. >> >> oh sorry i feel very dumb I completely misunderstood. >> Yes, splitting could be easily achieved >> >> >>> >>> If you are using logger, much depends on the log daemon >>> you have installed, but most have similar capabilities as >>> the above ones. >> >> I don't know what it is > > man logger > > >> I open a file and write actions of the programs in text >> form (i also just discovered one bug that maybe was very >> heavy for LbO : i used binary write and asciiZ strings >> instead of newline terminated ones). > > This is resource heavy way and your program will wait till > the write action has ben done. > > >>> I would recommend you to skip trying to make your own log >>> functionality, it will be most likely a resource hog. >> >> well within a program written in high level language >> writing text to a file is almost as natural as breathing :\ > > That's what a lot people thinks, and one reason why you > should avoid home brewed logging, you need to have logging > running in a separate thread, so it won't block your > application while writing to disk and you want to do the > with limited disk writes and if you ignore a type of logging > you want as little as possible done. > nlog/log4XXX are projects who been dedicated for logging for > so many years that they have managed to solve the problems > and it's less work to get nlog to work than write to a file, > so not much point in doing the wrong way. > > >> but I'm using gambas again, not C/C++ (and I'm not porting >> it as it is disk-intensive and I'd get no improvement >> stat-ing files) > > Then use logger, "man logger" and config your > rsyslog/syslog-ng/syslogd or what your system uses and set > up how you want to log rotate in your logrotate configuration. > uhm ... do you think using a trans-process communication would not introduce an extra-cost (eroding the gain in advanced buffering or async management and every other optimization) ? I'm not very comfortable with passing parameters to child-processed (created by shell or exec commands). anyway I'll try to look at logger -- 1) Resistere, resistere, resistere. 2) Se tutti pagano le tasse, le tasse le pagano tutti Soviet_Mario - (aka Gatto_Vizzato)
[toc] | [prev] | [next] | [standalone]
| From | "J.O. Aho" <user@example.net> |
|---|---|
| Date | 2019-10-09 19:28 +0200 |
| Message-ID | <h06jlfFdt4jU1@mid.individual.net> |
| In reply to | #59296 |
On 09/10/2019 14.14, Soviet_Mario wrote: > Il 09/10/19 07:01, J.O. Aho ha scritto: >> Then use logger, "man logger" and config your >> rsyslog/syslog-ng/syslogd or what your system uses and set up how you >> want to log rotate in your logrotate configuration. >> > > uhm ... do you think using a trans-process communication would not > introduce an extra-cost (eroding the gain in advanced buffering or async > management and every other optimization) ? > > I'm not very comfortable with passing parameters to child-processed > (created by shell or exec commands). > > anyway I'll try to look at logger For c/c++ you can communicate directly with the log daemon. Seems you can look for gambas3-gb-logging to get native logging capability to gambas, which could be better than running a exec(). You have to excuse my lack of gambas knowledge, haven't played with basic since AmigaBasic. -- //Aho
[toc] | [prev] | [next] | [standalone]
| From | Soviet_Mario <SovietMario@CCCP.MIR> |
|---|---|
| Date | 2019-10-09 20:17 +0200 |
| Message-ID | <qnl87q$qc3$1@dont-email.me> |
| In reply to | #59306 |
Il 09/10/19 19:28, J.O. Aho ha scritto: > On 09/10/2019 14.14, Soviet_Mario wrote: >> Il 09/10/19 07:01, J.O. Aho ha scritto: > >>> Then use logger, "man logger" and config your >>> rsyslog/syslog-ng/syslogd or what your system uses and >>> set up how you want to log rotate in your logrotate >>> configuration. >>> >> >> uhm ... do you think using a trans-process communication >> would not introduce an extra-cost (eroding the gain in >> advanced buffering or async management and every other >> optimization) ? >> >> I'm not very comfortable with passing parameters to >> child-processed (created by shell or exec commands). >> >> anyway I'll try to look at logger > > For c/c++ you can communicate directly with the log daemon. > Seems you can look for gambas3-gb-logging to get native > logging capability to gambas, which could be better than > running a exec(). intresting point ! I'll inquire on this component thanks > > You have to excuse my lack of gambas knowledge, haven't > played with basic since AmigaBasic. > -- 1) Resistere, resistere, resistere. 2) Se tutti pagano le tasse, le tasse le pagano tutti Soviet_Mario - (aka Gatto_Vizzato)
[toc] | [prev] | [next] | [standalone]
| From | Melzzzzz <Melzzzzz@zzzzz.com> |
|---|---|
| Date | 2019-10-09 06:07 +0000 |
| Message-ID | <OOenF.2533129$dw4.306325@fx12.am4> |
| In reply to | #59256 |
On 2019-10-08, Soviet_Mario <SovietMario@CCCP.MIR> wrote: > > All the suggested editors are CLI ? > I don't feel comfortable with cli programs alas. Try with vim, it will do just fine. Cli, yes, you want to screw but not fuck... > > > >> > > -- press any key to continue or any other to quit... U ničemu ja ne uživam kao u svom statusu INVALIDA -- Zli Zec Na divljem zapadu i nije bilo tako puno nasilja, upravo zato jer su svi bili naoruzani. -- Mladen Gogala
[toc] | [prev] | [next] | [standalone]
| From | Soviet_Mario <SovietMario@CCCP.MIR> |
|---|---|
| Date | 2019-10-09 14:17 +0200 |
| Message-ID | <qnkj4g$kvi$1@dont-email.me> |
| In reply to | #59286 |
Il 09/10/19 08:07, Melzzzzz ha scritto: > On 2019-10-08, Soviet_Mario <SovietMario@CCCP.MIR> wrote: >> >> All the suggested editors are CLI ? >> I don't feel comfortable with cli programs alas. > > Try with vim, it will do just fine. Cli, yes, you want to screw but not > fuck... sorry I don't know "everyday" English. A screew to me is a sharp piece of iron to fix wood stronger than nail :\ >> >> >> >>> >> >> > > -- 1) Resistere, resistere, resistere. 2) Se tutti pagano le tasse, le tasse le pagano tutti Soviet_Mario - (aka Gatto_Vizzato)
[toc] | [prev] | [next] | [standalone]
| From | Aragorn <thorongil@telenet.be> |
|---|---|
| Date | 2019-10-09 14:52 +0200 |
| Message-ID | <20191009145214.6b906f61@nx-74205> |
| In reply to | #59298 |
On 09.10.2019 at 14:17, Soviet_Mario scribbled:
> Il 09/10/19 08:07, Melzzzzz ha scritto:
> > On 2019-10-08, Soviet_Mario <SovietMario@CCCP.MIR> wrote:
> >>
> >> All the suggested editors are CLI ?
> >> I don't feel comfortable with cli programs alas.
> >
> > Try with vim, it will do just fine. Cli, yes, you want to screw but
> > not fuck...
>
> sorry I don't know "everyday" English. A screew to me is a
> sharp piece of iron to fix wood stronger than nail :\
"To screw" is a somewhat rude slang for having sex, but still
mildly less rude than saying "to fuck".
It is sometimes also used as a sexual metaphor in non-sexual matters,
such as for instance in the phrase...
"I've just bought a used car, but I think I got screwed."
... meaning that you suspect that you got conned.
--
With respect,
= Aragorn =
[toc] | [prev] | [next] | [standalone]
| From | Bud Frede <frede@mouse-potato.com> |
|---|---|
| Date | 2019-10-13 08:49 -0400 |
| Message-ID | <h0gkqaFgg7eU1@mid.individual.net> |
| In reply to | #59254 |
"J.O. Aho" <user@example.net> writes: > On 08/10/2019 19.17, Soviet_Mario wrote: >> >> Is it there such a thing ? >> Even a simple "viewer" (but with minimal, but FAST, search >> capability) could do > > grep + sed ? > > >> I'm generating text log files upwards of 300-400 MB > > A bit OT, but why not have a more frequent log rotation, so that the > files won't get too large for you. Personally, I'd probably put them in Splunk. That gives you lots of search, presentation, etc. features. (Doing log rotation is still necessary though. It makes the files easier to work with, compress, archive, etc. However, Splunk can handle very large log files (in a situation where someone broke logrotate I saw Splunk handling log files that became 50+ GB in size.) Some people use (gag) ELK - Elasticsearch, Logstash, and Kibana to do this. Having had to administer a number of large ELK instances, I now run in the other direction when people start talking about it. :-)
[toc] | [prev] | [next] | [standalone]
Page 1 of 6 [1] 2 3 4 5 6 Next page →
Back to top | Article view | alt.os.linux
csiph-web