v7.1beta4 [bug] export hangs / slow

Hi,

I thought I’d break out the bug reports from the v71beta4 release announcement [1] to a separate topic.
Please leave a comment if this topic is a duplicate and accept my apologies.

Several users have reported in [1] that export hangs or is slow. I can confirm this behaviour.
At the same time, I noticed that a verbose export does not suffer from this performance issue.

Since the default export is compact [2] I assume that the filtering for non-default configurations may be the culprit.

The flag terse has no performance impact.

I also noticed that

/system/backup/save dont-encrypt=yes name=foo

is even faster than any export.

Can anyone reproduce my experience?

Kind regards

[1] http://forum.mikrotik.com/t/v7-1beta4-development-is-released/146644/101
[2] https://wiki.mikrotik.com/wiki/Manual:Configuration_Management#Compact_Export

ROS v6 is like this as well and it’s easy to explain: backup file is a mere a collection of binary configuration, I guess a combination of memory dumps (or may be not) and pre-existing binary configuration files and backup process simply collects them and packs them into single file. Export OTOH has to covert it to ASCII format and reorder stanzas so that they can be imported line-by-line to a empty-config device.
What is new in v7 is that exporter seemingly chokes on comparison of running config versus default config (verbose and terse don’t do it) in certain sections. I’m pretty sure MT devs are aware of the problem given how simply it’s replicated but solving it is probably not at the top of To-Do list.

There is definitely a problem with “export” on 7.1beta4.

I see the following in the output of “export terse hide-sensitive”: “#error exporting /routing/filter/rule”

Sure enough, running “export” inside “/routing/filter/rule” hangs for a long time (multiple minutes). Adding “verbose” to that makes it return immediately, but I don’t really want a verbose export.

This is on a WAP ac with the default configuration. There is nothing (that I can see, at least) in /routing/filter/rule to export.

I hope this helps.

This bug seems to be fixed in 7.1 beta5.

How do you know that?

Received it after reporting another issue.

You can use

/export verbose

Works, but may give you to much :slight_smile:

We need beta5 now!